/*
Theme Name: Astra Child
Template: astra
Author: Antigravity
Text Domain: astra-child
*/

:root {
    --emerald-deep: #064635;
    --gold-muted: #D4AD60;
    --ivory-bg: #FBF8F1;
    --graphite-text: #2D2E2E;
    --accent-energy: #F0F4F0;
    --serif-header: 'Cormorant Garamond', serif;
    --sans-body: 'Inter', sans-serif;
}

body {
    background-color: var(--ivory-bg);
    color: var(--graphite-text);
    font-family: var(--sans-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overhaul */
h1,
h2,
h3 {
    font-family: var(--serif-header);
    font-weight: 600;
    color: var(--emerald-deep);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* Force light text on cover block overlays */
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3,
.wp-block-cover p,
.wp-block-cover .has-text-color {
    color: var(--ivory-bg) !important;
}

/* Abstract Elements */
.premium-gradient {
    background: radial-gradient(circle at top right, rgba(212, 173, 96, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(6, 70, 53, 0.03), transparent);
}

.overlapping-image {
    position: relative;
    z-index: 1;
    margin-bottom: -100px;
}

/* Section Dividers & Flourishes */
.section-divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
    width: 60%;
    margin: 40px auto;
}

/* Buttons */
.wp-block-button__link {
    background-color: var(--emerald-deep) !important;
    border: 1px solid var(--emerald-deep) !important;
    color: var(--ivory-bg) !important;
    padding: 15px 40px !important;
    font-family: var(--sans-body);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    border-radius: 0 !important;
}

.wp-block-button__link:hover {
    background-color: transparent !important;
    color: var(--emerald-deep) !important;
}

/* header and logo refinement */
.site-logo-img img,
.custom-logo,
.ast-logo-svg,
.custom-logo-link img {
    max-height: none !important;
    max-width: none !important;
    height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
}

.main-header-bar {
    padding: 8px 0 !important;
    background-color: #f5f3e6 !important;
    border-bottom: 1px solid rgba(212, 173, 96, 0.15);
}

.ast-site-identity {
    display: flex;
    align-items: center;
}

.ast-site-title-wrap {
    display: none !important;
}

.premium-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 173, 96, 0.15) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.premium-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(6, 70, 53, 0.1);
    border-color: var(--gold-muted) !important;
}

.premium-card h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.premium-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

/* Equal Height Alignment */
.wp-block-columns {
    display: flex !important;
}

.wp-block-column {
    display: flex !important;
    flex-direction: column !important;
}

.premium-card-wrapper {
    flex-grow: 1 !important;
    display: flex !important;
}

/* Layout Consistency & Full-Width Backgrounds */
.bg-full-emerald {
    background-color: var(--emerald-deep) !important;
    color: var(--ivory-bg) !important;
}

.bg-full-ivory {
    background-color: var(--ivory-bg) !important;
}

/* Card for Testimonials */
.testimonial-card {
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
}

/* Layering & Asymmetry */
.has-overlap {
    margin-top: -120px;
    z-index: 10;
    position: relative;
}

.energy-texture {
    opacity: 0.4;
    filter: contrast(110%);
}

/* Background Utilities */
.bg-subtle-ivory {
    background-color: #fdfaf5 !important;
}

.wp-block-group__inner-container {
    position: relative;
    z-index: 1;
}

/* Navigation Menu Polish */
.ast-header-break-point .main-header-bar {
    padding-left: 0;
    padding-right: 0;
}

.main-navigation {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
}

.main-header-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-header-menu .menu-item a {
    white-space: nowrap !important;
    padding: 0 1.2em !important;
    font-family: var(--sans-body);
    font-weight: 500;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    color: var(--emerald-deep);
    transition: opacity 0.3s ease;
}

.main-header-menu .menu-item a:hover {
    opacity: 0.7;
}

.ast-container {
    max-width: 1400px !important;
}