/* ----------------------------------------------------------------------
   1. GLOBAL RESET & BASE STYLES
   ---------------------------------------------------------------------- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif; 
    scroll-behavior: smooth; 
    -webkit-font-smoothing: antialiased;
}

html, body {
    overflow-x: visible;
}

body { 
    background-color: #ffffff; 
    color: #333; 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

/* ----------------------------------------------------------------------
   2. STICKY HEADER
   ---------------------------------------------------------------------- */
header {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;        
    top: 0;                 
    background: #ffffff;    
    z-index: 1000;          
    padding: 10px 0;        
    border-bottom: 2px solid #1a5a96; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section, .header-phone { display: flex; align-items: center; }
.logo-section { text-decoration: none; gap: 15px; }
.logo-section img { height: 60px; width: 60px; display: block; }
.brand-text { display: flex; flex-direction: column; text-align: left; }
.brand-name { font-size: 20px; font-weight: 800; color: #1a5a96; line-height: 1.1; letter-spacing: -0.5px; text-transform: uppercase; }
.brand-tagline { font-size: 14px; font-weight: 600; color: #666; margin-top: 2px; }
.header-phone a { color: #B0120C; text-decoration: none; display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 16px; transition: all 0.2s; }
.header-phone a:hover { transform: scale(1.05); opacity: 0.8; }

/* ----------------------------------------------------------------------
   3. PRIVACY POLICY SPECIFIC STYLING
   ---------------------------------------------------------------------- */
.container-privacy { max-width: 800px; margin: 0 auto; text-align: left; padding: 40px 20px; }
.container-privacy h1 { color: #1a5a96; font-size: 32px; margin-bottom: 10px; border-bottom: 2px solid #f2f2f2; padding-bottom: 10px; text-align: left; }
.last-updated { font-size: 14px; color: #2b2b2b; margin-bottom: 30px; }
.container-privacy h2 { color: #1a5a96; font-size: 22px; margin-top: 30px; margin-bottom: 15px; border-left: 4px solid #1a5a96; padding-left: 10px; text-align: left; }
.container-privacy p { margin-bottom: 15px; color: #575757; }
.container-privacy ul { margin-bottom: 20px; padding-left: 20px; }
.container-privacy li { margin-bottom: 10px; color: #575757; }
.back-link { display: inline-block; margin-bottom: 20px; color: #1a5a96; text-decoration: none; font-weight: bold; }

/* ----------------------------------------------------------------------
   4. MAIN HOMEPAGE & FORMS
   ---------------------------------------------------------------------- */
main { margin-top: 20px; padding: 0 20px; text-align: center; flex: 1; }
section { max-width: 900px; margin: 0 auto; padding-bottom: 10px; }
h1 { margin-top: 10px; margin-bottom: 40px; color: #333; font-weight: 700; font-size: 36px; line-height: 1.2; }

#contact-form-section {
    max-width: 500px; 
    margin: 0 auto 40px auto; 
    padding: 20px; 
    background: #fdfdfd; 
    border: 1px solid #eee; 
    border-radius: 8px;
    scroll-margin-top: 120px;
}

/* ----------------------------------------------------------------------
   5. BUTTONS & ACTIONS
   ---------------------------------------------------------------------- */
.button-group { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 40px; }
.btn { display: inline-block; border: 3px solid #1a5a96; color: #1a5a96; padding: 12px 25px; font-size: 18px; font-weight: bold; text-decoration: none; transition: all 0.3s; width: 100%; max-width: 300px; text-transform: uppercase; }
.btn:hover { background-color: #1a5a96; color: white; }
.btn-whatsapp { border-color: #1D873B; color: #1D873B; }
.btn-whatsapp:hover { background-color: #1D873B; color: white; }

/* ----------------------------------------------------------------------
   6. FOOTER & VERIFIED BADGES
   ---------------------------------------------------------------------- */
footer {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    color: #444;
    font-size: 14px;
}

.footer-phone-link { color: #1a5a96; text-decoration: none; font-weight: bold; }

.verified-badge-card {
    margin: 20px auto; 
    padding: 15px; 
    max-width: 400px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    background: #fff;
}

.badge-stars { color: #f1c40f; font-size: 18px; margin-bottom: 5px; }

.badge-action-link {
    display: inline-block; 
    margin-top: 10px; 
    color: #1a5a96; 
    text-decoration: underline; 
    font-weight: 600;
}

.footer-legal-note { font-size: 11px; margin-top: 20px; }

/* ----------------------------------------------------------------------
   7. FORM & MOBILE STYLES
   ---------------------------------------------------------------------- */
.form-group { margin-bottom: 15px; }
.form-input, .form-textarea {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px;
    font-size: 16px;
}
.form-textarea { height: 100px; resize: vertical; }
.form-legal { font-size: 12px; color: #595959; margin-bottom: 15px; text-align: left; line-height: 1.4; }
.form-submit {
    cursor: pointer; 
    background: #1a5a96; 
    color: white; 
    width: 100%; 
    border: none; 
    padding: 12px; 
    font-weight: bold; 
    border-radius: 4px; 
    font-size: 16px;
}
/* Ensure the success container starts hidden without blocking JS */
.success-container {
    display: none; 
    padding: 30px 20px; 
    text-align: center; 
    border: 2px solid #1a5a96; 
    border-radius: 8px; 
    background: #f0f7ff;
}
.success-icon { font-size: 40px; margin-bottom: 10px; }
.reset-btn { 
    background: none; border: none; color: #1a5a96; 
    font-size: 14px; text-decoration: underline; 
    font-weight: 600; cursor: pointer; 
}

@media (max-width: 950px) {
    .header-container { flex-direction: column; gap: 15px; padding: 10px 20px; }
    .logo-section, .header-phone { width: 100%; justify-content: center; }
    h1 { font-size: 28px; line-height: 1.1; }
    #contact-form-section { scroll-margin-top: 180px; }
}

/* ----------------------------------------------------------------------
   8. RESTORED & FIXED LAYOUTS
   ---------------------------------------------------------------------- */

/* Section Divider */
.section-divider {
    height: 2px;
    background-color: #f2f2f2;
    margin: 40px auto;
    max-width: 200px;
}

/* What We Do - Clean Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.service-box {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.service-box h3 a {
    color: #1a5a96;
    text-decoration: none;
}

.service-box ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
    font-size: 15px;
}

/* Portfolio - 2 Rows of 3 */
.portfolio-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
}

/* Reviews - Centered Layout */
.reviews-section {
    padding: 40px 0;
}

.review-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 22px;
    font-weight: bold;
    color: #1a5a96;
    margin-bottom: 20px;
    text-align: center;
}

.review-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stars { color: #f1c40f; margin-bottom: 10px; text-align: center; }
.review-text { font-style: italic; margin-bottom: 10px; }
.reviewer-name { font-weight: bold; color: #555; }

/* Mobile Adjustments for Grids */
@media (max-width: 768px) {
    .services-grid, .portfolio-row {grid-template-columns: 1fr; /* Stack 1x1 on mobile */}
    .portfolio-item img {height: auto;}
}

/* Success Message Styling */
.success-container {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 40px 20px;
    background-color: #f0fdf4; /* Light green background */
    border: 2px solid #22c55e; /* Green border */
    border-radius: 8px;
    margin-top: 20px;
}

.success-icon {
    font-size: 48px;
    color: #22c55e;
    margin-bottom: 15px;
}

.reset-btn {
    margin-top: 20px;
    background: none;
    border: 1px solid #1a5a96;
    color: #1a5a96;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.reset-btn:hover {
    background-color: #f0f7ff;
}

/* Utility to hide elements safely */
.is-hidden {
    display: none !important;
}