/* Gutenberg Custom Styles for DrupalUSA */

/* Importing Tailwind CSS via CDN or custom rules to support custom classes in Block Editor */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Apply site-wide repeating background gradient to main wrapper or body */
body, .editor-styles-wrapper {
    font-family: 'Inter', sans-serif !important;
    background: repeating-linear-gradient(
        45deg,
        #b9d5e8 0px,
        #b9d5e8 34px,
        #d6ebf7 34px,
        #d6ebf7 150px
    ) !important;
}

/* Ensure Gutenberg content matches max-width */
.wp-block-group, .entry-content > *:not(.alignfull) {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Custom CSS classes matching original Tailwind styles */
.drupalusa-hero-section {
    min-height: calc(100vh - 170px);
    display: flex;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.drupalusa-hero-section h1 {
    font-size: 52px;
    line-height: 0.92;
    font-weight: 600;
    letter-spacing: -0.06em;
    color: #08198f;
}

@media (min-width: 640px) {
    .drupalusa-hero-section h1 { font-size: 64px; }
}
@media (min-width: 768px) {
    .drupalusa-hero-section h1 { font-size: 78px; }
}
@media (min-width: 1024px) {
    .drupalusa-hero-section h1 { font-size: 92px; }
}

.drupalusa-about-section {
    background: #ffffff;
    padding: 5rem 1.5rem;
    border-radius: 36px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.drupalusa-services-section {
    background: #f6f9ff;
    padding: 5rem 1.5rem;
    border-radius: 36px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.drupalusa-work-section {
    background: #ffffff;
    padding: 5rem 1.5rem;
    border-radius: 36px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Theme color mappings */
.text-brand-blue { color: #08198f !important; }
.text-brand-pink { color: #ff61ba !important; }
.text-brand-dark { color: #16256d !important; }
.text-brand-muted { color: #5e6798 !important; }

/* Custom Buttons styling */
.wp-block-button__link {
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-primary .wp-block-button__link {
    background-color: #071b88 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(7, 27, 136, 0.2) !important;
}

.btn-primary .wp-block-button__link:hover {
    background-color: #0b1c8d !important;
}

.btn-secondary .wp-block-button__link {
    background-color: #ffffff !important;
    color: #29316a !important;
    box-shadow: 0 10px 30px rgba(133, 136, 170, 0.15) !important;
}

.btn-secondary .wp-block-button__link:hover {
    box-shadow: 0 10px 20px rgba(133, 136, 170, 0.25) !important;
}

/* Project Cards Grid styling */
.project-card {
    background: #ffffff;
    border: 1px solid #e7eef9;
    border-radius: 32px;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(8, 25, 143, 0.1);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Hide Astra site title text and page titles to keep original design clean */
.site-title, .site-title a, .ast-site-identity .site-title, .site-description, .page .entry-header, .page-template-default .entry-header, .entry-header.ast-no-thumbnail {
    display: none !important;
}

/* Floating Navigation Header */
@media (min-width: 922px) {
    .main-header-bar-wrap {
        position: fixed !important;
        top: 16px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        width: calc(100% - 3rem) !important;
        max-width: 1260px !important;
        margin: 0 auto !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        border-radius: 9999px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        transition: all 0.5s ease-out !important;
    }
    .main-header-bar {
        background: transparent !important;
        border: none !important;
    }
    .ast-primary-header-bar {
        padding: 0.5rem 2rem !important;
    }
    
    /* Shift main page content down so it is not hidden under the fixed header */
    body.page {
        padding-top: 110px !important;
    }
}

/* Floating Header for Mobile */
@media (max-width: 921px) {
    .main-header-bar-wrap {
        position: fixed !important;
        top: 12px !important;
        left: 12px !important;
        right: 12px !important;
        z-index: 999 !important;
        width: auto !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(12px) !important;
        border-radius: 24px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    }
    .main-header-bar {
        background: transparent !important;
        border: none !important;
        padding: 0.5rem 1rem !important;
    }
    body.page {
        padding-top: 90px !important;
    }
}

/* Logo max constraints */
.site-header .custom-logo-link img.custom-logo,
.site-logo-img img,
img.custom-logo,
.custom-logo {
    max-height: 38px !important;
    width: auto !important;
}

/* Header menu items and tilt animation on hover */
.main-header-menu .menu-item > a {
    transition: transform 180ms ease, color 180ms ease !important;
    transform-origin: center !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    color: #3e4270 !important;
}
.main-header-menu .menu-item > a:hover {
    transform: rotate(-4deg) translateY(-1px) !important;
    color: #0b1c8d !important;
}

/* Custom styles for Lead Form Shortcode (Tailwind replacement) */
#contact {
    width: 100%;
    max-width: 500px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    box-shadow: 0 30px 80px rgba(126, 135, 177, 0.22);
    backdrop-filter: blur(8px);
    text-align: left;
    box-sizing: border-box;
    margin: 0 auto;
}

#contact .free-consultation {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ff61ba;
    margin-bottom: 0.5rem;
}

#contact h3 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    color: #16256d;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

#contact p.description {
    font-size: 15px;
    line-height: 1.6;
    color: #66709a;
    margin-bottom: 1.5rem;
}

#contact input, #contact textarea {
    width: 100% !important;
    border-radius: 16px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    padding: 0.8rem 1rem !important;
    font-size: 15px !important;
    color: #334155 !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    margin-bottom: 1rem !important;
    height: auto !important;
}

#contact input:focus, #contact textarea:focus {
    border-color: #071b88 !important;
    background-color: #ffffff !important;
}

#contact button[type="submit"] {
    width: 100% !important;
    border-radius: 16px !important;
    background-color: #071b88 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    box-shadow: 0 10px 20px rgba(7, 27, 136, 0.15) !important;
}

#contact button[type="submit"]:hover {
    background-color: #0b1c8d !important;
}

