/*
Theme Name: PuzzledAntique Divi Child
Theme URI: https://dev.puzzledantique.com
Description: Divi child theme matching the PuzzledAntique Google Sites design
Author: PuzzledAntique
Author URI: https://dev.puzzledantique.com
Template: Divi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Base typography */
body, p, li, a, span, div {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6,
.et_pb_text_inner h1,
.et_pb_text_inner h2,
.et_pb_text_inner h3 {
    font-family: 'Bitter', serif;
}

/* Brand purple from original Google Site */
.pa-purple {
    color: rgba(102,0,180,1);
}

/* Link and accent color */
a, a:visited, .et_pb_button, .et_pb_button:visited {
    color: rgba(102,0,180,1);
}

a:hover, .et_pb_button:hover {
    color: #7b1fa2;
}

/* Button style */
.et_pb_button {
    background-color: rgba(102,0,180,1) !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    padding: 12px 24px !important;
}

.et_pb_button:hover {
    background-color: #7b1fa2 !important;
    color: #fff !important;
}

/* Header - purple like original */
#main-header,
.et_header_style_left #main-header,
.et_header_style_split #main-header,
.et_header_style_centered #main-header {
    background-color: rgba(102,0,180,1) !important;
    box-shadow: none !important;
}

#top-menu li a,
.et_mobile_menu li a {
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

#top-menu li a:hover,
#top-menu li.current-menu-item a,
#top-menu li.current-menu-ancestor a {
    color: rgba(255,255,255,0.8) !important;
}

.et_search_form_container input,
#et_top_search {
    color: #fff !important;
}

#et_mobile_nav_menu .mobile_menu_bar:before {
    color: #fff !important;
}

/* Hide default page titles */
.entry-title.main_title {
    display: none !important;
}

/* Footer - dark gray like original, hide widgets */
#main-footer {
    background-color: #424242 !important;
    color: #fff !important;
}

#main-footer a,
#main-footer h4,
.footer-widget h4 {
    color: #fff !important;
}

#footer-widgets {
    display: none !important;
}

#footer-bottom {
    background-color: rgba(0,0,0,0.2) !important;
    padding: 20px 0 !important;
}

#footer-info {
    color: #fff !important;
    text-align: center;
    float: none;
    width: 100%;
}

#footer-info a {
    color: #fff !important;
}

/* Hide default footer credits */
#footer-info .et-social-icons,
#footer-info .et-social-icons a {
    display: inline-block;
}

/* Hero section */
.pa-hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.pa-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
}

.pa-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.pa-hero-section h1 {
    font-family: 'Bitter', serif;
    font-size: 48px;
    color: #fff !important;
    margin-bottom: 10px;
    line-height: 1.2;
}

.pa-hero-section .pa-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: #fff !important;
    margin-bottom: 20px;
}

.pa-hero-section .pa-contact-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff !important;
}

.pa-hero-section .pa-contact-text strong {
    font-weight: 700;
}

/* Section headings */
.pa-section-heading {
    text-align: center;
    color: rgba(102,0,180,1);
    font-family: 'Bitter', serif;
    font-size: 32px;
    margin: 40px 0 20px;
}

.pa-intro-heading {
    text-align: center;
    color: rgba(102,0,180,1);
    font-family: 'Bitter', serif;
    font-size: 28px;
    margin: 40px 0 10px;
}

.pa-intro-text {
    text-align: center;
    color: #666;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Card grid */
.pa-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .pa-card-grid {
        grid-template-columns: 1fr;
    }
}

.pa-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.pa-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.pa-card-label {
    background-color: rgba(102,0,180,1);
    color: #fff;
    font-family: 'Bitter', serif;
    font-size: 16px;
    font-weight: 700;
    padding: 10px;
    margin: 0;
}

.pa-card-text {
    padding: 15px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Page content wrapper */
.entry-content {
    padding-top: 0 !important;
}

#page-container {
    padding-top: 0 !important;
}

.et_fixed_nav.et_show_nav #page-container {
    padding-top: 0 !important;
}

/* Make header not fixed so hero starts at top */
#main-header {
    position: relative !important;
}

/* Social icons in footer */
.et-social-icons {
    float: none;
    display: inline-block;
}

.et-social-icons a {
    color: #fff !important;
}

/* Hide default Divi footer elements; use custom footer instead */
#footer-widgets,
#footer-bottom {
    display: none !important;
}

/* Ensure custom footer is visible and styled */
#puzzledantique-custom-footer {
    background-color: #424242 !important;
    color: #fff !important;
    text-align: center;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

#puzzledantique-custom-footer a {
    color: #fff !important;
    text-decoration: none;
}

#puzzledantique-custom-footer img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.pa-card-image-bg {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
}

/* Replace Divi logo with PuzzledAntique text */
#logo {
    display: none !important;
}

.logo_container::before {
    content: 'PuzzledAntique';
    color: #fff;
    font-family: 'Bitter', serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 54px;
    display: inline-block;
}

/* Hero text refinements */
.pa-hero-section h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.pa-hero-section .pa-subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.pa-hero-section .pa-contact-text {
    font-size: 14px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Center the last card in grid when odd */
.pa-card-grid {
    justify-items: center;
}

.pa-card:nth-child(5):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 15px);
}

@media (max-width: 768px) {
    .pa-card:nth-child(5):last-child {
        max-width: 100%;
        grid-column: auto;
    }
}

/* Section headings */
.pa-intro-heading {
    font-size: 32px;
    margin-top: 50px;
}

.pa-section-heading {
    font-size: 28px;
}

/* Card refinements */
.pa-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.pa-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pa-card-label {
    font-size: 15px;
    padding: 12px;
}

.pa-card-text {
    font-size: 13px;
    color: #555;
}
