/*
 Theme Name:   Astra Child — SVIF
 Theme URI:    https://svif.in
 Description:  Astra Child Theme for SVIF.in — S V Innovation Foundation
 Author:       Brand Core Media
 Author URI:   https://brandcoremedia.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child-svif
*/

/* ============================================================
   SVIF Global Styles
   ============================================================ */

/* Remove Astra default content padding on full-width pages */
.ast-page-builder-template .entry-content,
.page-template-default .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Full width WPBakery rows */
.vc_row.vc_row-fluid.vc_row-full-width {
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: 100vw !important;
    width: 100vw !important;
}

/* Remove Astra default page title on WPBakery pages */
.ast-page-builder-template .entry-header {
    display: none !important;
}

/* Remove default padding from Astra content area */
.ast-separate-container .ast-article-single,
.ast-plain-container .ast-article-single {
    padding: 0 !important;
}

/* Fix Astra site content padding */
#content .ast-container {
    padding: 0 !important;
}

.ast-page-builder-template #primary {
    padding: 0 !important;
}

/* ── SVIF Brand Colors ── */
:root {
    --svif-blue:   #0D3B6E;
    --svif-orange: #F97316;
    --svif-light:  #F4F7FB;
    --svif-border: #E2E8F0;
    --svif-text:   #374151;
    --svif-muted:  #6B7A8D;
}

/* ── CF7 Submit Button ── */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    background-color: #F97316 !important;
    background: #F97316 !important;
    border: 2px solid #F97316 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 0 32px !important;
    height: 48px !important;
    line-height: 48px !important;
    border-radius: 8px !important;
    width: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 14px rgba(249,115,22,0.35) !important;
    transition: background 0.2s !important;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    background-color: #e86810 !important;
    background: #e86810 !important;
    border-color: #e86810 !important;
}

/* ── CF7 form fields ── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 2px solid #E2E8F0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #0A1628 !important;
    background: #fff !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    margin-bottom: 0 !important;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #0D3B6E !important;
    box-shadow: 0 0 0 3px rgba(13,59,110,0.08) !important;
}

.wpcf7 textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

.wpcf7 select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A8D' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

/* ── Header offset for fixed Astra header ── */
.site-main,
#main,
main#main {
    padding-top: 0 !important;
}

/* Custom PHP pages need top padding to clear fixed header */
body.page-template-page-apply .svif-wrap > div:first-child,
body.single-startup > div:first-child,
body.post-type-archive-startup > div:first-child {
    padding-top: 90px !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    body.page-template-page-apply .svif-wrap > div:first-child,
    body.single-startup > div:first-child,
    body.post-type-archive-startup > div:first-child {
        padding-top: 70px !important;
    }
}
