/* Fonts are self-hosted: see assets/css/fonts.css (loaded and preloaded by the theme). */

:root, html, body {
    --warm-ivory: #F2F0EB;
    --deep-blue: #27395A;
    --sage-green: #AEC7B2;
    --sage-green-deep: #7A9B82;

    --primary-color: #27395A !important;
    --secondary-color: #AEC7B2 !important;
    --accent-color: #7A9B82 !important;
    --bg-color: #F2F0EB !important;
    --bg-secondary: #E8E4DC !important;
    --text-dark: #1F2A3D !important;
    --text-light: #5A6570 !important;

    --dt-primary: #27395A;
    --dt-secondary: #AEC7B2;
    --dt-accent: #7A9B82;
    --dt-bg: #F2F0EB;
    --dt-bg-secondary: #E8E4DC;
    --dt-text-dark: #1F2A3D;
    --dt-text-light: #5A6570;
    --dt-font-heading: 'Playfair Display', serif;
    --dt-font-body: 'Outfit', sans-serif;

    --font-heading: 'Playfair Display', serif !important;
    --font-body: 'Outfit', sans-serif !important;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Height of the fixed site header. Must equal the rendered header
   (header.css: 64px tall on <=992px, 80px above, plus a 1px border),
   otherwise the page jumps when the header script measures it. */
:root {
    --dt-banner-h: 0px;
    --dt-header-h: 65px;
    --dt-chrome-h: 65px;
}

@media (min-width: 993px) {
    :root {
        --dt-header-h: 81px;
        --dt-chrome-h: 81px;
    }
}

/* Inline SVG icons (inc/media-helpers.php): sized by font-size like the old icon font. */
.dt-icon {
    display: inline-block;
    line-height: 1;
}

.dt-icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.dt-icon--3x {
    font-size: 3em;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--warm-ivory) !important;
    line-height: 1.6;
    overflow-x: clip;
    padding-top: var(--dt-chrome-h);
}

html,
#page,
.site,
.elementor-page {
    background-color: var(--warm-ivory) !important;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--deep-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(39, 57, 90, 0.22);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--sage-green-deep) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(122, 155, 130, 0.35);
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--deep-blue) !important;
    border: 2px solid var(--deep-blue) !important;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    background-color: var(--deep-blue) !important;
    color: #ffffff !important;
}

/* Section spacing: see "SITE-WIDE SPACING" at the end of this file. */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--deep-blue);
    margin-bottom: 18px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
}

.section-subtitle {
    color: var(--sage-green-deep);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

h1, h2, .elementor-heading-title {
    color: var(--deep-blue);
}

.btn i, .btn svg,
.badge-icon i, .badge-icon svg,
.ep-icon i, .ep-icon svg,
.stat-icon i, .stat-icon svg,
.contact-icon i, .contact-icon svg,
.step-icon i, .step-icon svg,
.method-icon i, .method-icon svg,
.social-links-large a i, .social-links-large a svg,
.cs-icon i, .cs-icon svg {
    font-size: inherit;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.elementor-page h1,
.elementor-page h2,
.elementor-page h3,
.elementor-heading-title {
    font-family: 'Playfair Display', serif !important;
}

.elementor-page p,
.elementor-widget-text-editor,
.elementor-widget-text-editor p,
.elementor-icon-list-text {
    font-family: 'Outfit', sans-serif !important;
}

.elementor-page .elementor-widget-image img {
    border-radius: 30px !important;
}

.dt-section-margin, .section-margin { margin: var(--dt-section-y) 0; }

@media (max-width: 768px) {
    /* body prefix: styles.css (loaded later) sets 70px at the same specificity. */
    body .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 30px; white-space: normal; }
}

/* ==========================================================================
   SITE-WIDE SPACING
   One vertical rhythm for every content section, and one side gutter.
   Page-title banners and the home hero keep their own (designed) spacing.
   ========================================================================== */
:root {
    --dt-section-y: 96px;     /* top/bottom of a content section */
    --dt-section-y-sm: 48px;  /* slim bands: logo strips, first section after a page title */
    --dt-gutter: 20px;        /* left/right page gutter */
}

@media (max-width: 1024px) {
    :root {
        --dt-section-y: 72px;
        --dt-section-y-sm: 40px;
    }
}

@media (max-width: 767px) {
    :root {
        --dt-section-y: 56px;
        --dt-section-y-sm: 32px;
    }
}

.section-padding,
.dt-section-padding,
.dt-spotlight {
    padding-top: var(--dt-section-y);
    padding-bottom: var(--dt-section-y);
}

/* Slim bands */
.as-seen-on,
.books-marquee {
    padding-top: var(--dt-section-y-sm);
    padding-bottom: var(--dt-section-y-sm);
}

/* A container that only wraps a padded widget must not add a second layer of padding. */
.e-con.dt-section-padding:has(.section-padding, .dt-spotlight) {
    padding-top: 0;
    padding-bottom: 0;
}

/* The page-title banner already gives breathing room above the first section. */
.e-con:has(> .elementor-widget-dt-page-header) + .e-con .section-padding {
    padding-top: var(--dt-section-y-sm);
}

/* Same side gutter for theme sections at every width. */
.section-padding > .container,
.dt-spotlight > .container,
.as-seen-on > .container {
    padding-left: var(--dt-gutter);
    padding-right: var(--dt-gutter);
}
