/* =========================================================
   GLOBAL CSS — Variables, Reset, Typography, Buttons, Forms, Header
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
    --primary-olive: #9CA07C;
    --olive-dark: #6C704F;
    --olive-light: #E8EAE0;
    --olive-soft: #C8CCAF;
    --bg-cream: #FBF6E9;
    --bg-cream-card: #FFFFFF;
    --text-dark: #1F241C;
    --text-muted: #5C6257;
    --white: #FFFFFF;
    --border-color: rgba(156, 160, 124, 0.25);
    --shadow-sm: 0 4px 12px rgba(31, 36, 28, 0.04);
    --shadow-md: 0 10px 30px rgba(31, 36, 28, 0.08);
    --shadow-lg: 0 20px 40px rgba(31, 36, 28, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}




.form-peek-img {

    display: none;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* ---------- Layout ---------- */
.container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 12px;
    background: #1F241C;
    padding: 6px 25px;
    border-radius: 15px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 50px;
    line-height: 1.4;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb {
    background: var(--primary-olive);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--olive-dark); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 21px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: #1f241c;
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--olive-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 112, 79, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--primary-olive);
    border: 1px solid #1f241c;
}

.btn-secondary:hover {
    background-color: var(--primary-olive);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--olive-dark);
    transform: translateY(-3px);
}

/* ---------- Form Controls ---------- */
.form-group {
    margin-bottom: 12px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    stroke: #1f241c;
    fill: none;
    pointer-events: none;
    transition: var(--transition-normal);
    z-index: 2;
}

.form-control {
    width: 100%;
    padding: 8px 18px 8px 45px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    transition: var(--transition-normal);
}

.form-control:focus {
    border-color: var(--primary-olive);
    box-shadow: 0 0 0 4px rgba(156, 160, 124, 0.15);
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    stroke: var(--olive-dark);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA07C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.input-wrapper.textarea-wrapper { align-items: flex-start; }
.input-wrapper.textarea-wrapper .input-icon { top: 16px; }

textarea.form-control {
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
}

/* ---------- Site Header ---------- */
.site-header {
    background-color: var(--bg-cream);
    padding: 10px 0px 1px 0;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo img {
    height: 85px;
    width: auto;
    transition: var(--transition-normal);
}

.header-logo:hover img {
    opacity: 0.85;
    transform: scale(0.98);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.header-contact-item svg { stroke: var(--primary-olive); }
.header-contact-item:hover { color: var(--primary-olive); }

.live-chat-btn {
    background: rgb(156 160 124);
    color: var(--white);
    border: 1px solid var(--primary-olive);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.live-chat-btn:hover {
    background: var(--primary-olive);
    color: var(--white);
}

.chat-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #4CAF50;
}

/* Phone ring animation */
.header-contact-item .phone-icon {
    stroke: #1f241c;
    flex-shrink: 0;
    animation: phoneRing 1.8s infinite ease-in-out;
    transform-origin: center;
}

@keyframes phoneRing {
    0% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-15deg) scale(1.1); }
    20% { transform: rotate(15deg) scale(1.1); }
    30% { transform: rotate(-15deg) scale(1.1); }
    40% { transform: rotate(15deg) scale(1.1); }
    50% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

.header-contact-item:hover { color: #000; }
.header-contact-item:hover .phone-icon { animation-duration: 0.8s; }

/* ---------- Form Card (Used in Drawer, Modal, Hero, Footer CTA) ---------- */
.form-card {
    background-color: #F8F7EC;
    width: 100%;
    max-width: 460px;
    padding: 45px 35px;
    border-radius: 24px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-header h2 {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #111111;
    font-size: 26px;
    margin-bottom: 18px;
    font-weight: 700;
}

.form-header p {
    color: #666666;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 30px;
}

#contactForm,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#contactForm input,
#contactForm select,
#contactForm textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #777777;
    border-radius: 10px;
    background-color: transparent;
    font-size: 15px;
    color: #333333;
    outline: none;
    transition: border-color 0.2s ease;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #111111;
}

::placeholder {
    color: #555555;
    opacity: 1;
}

#contactForm textarea,
.contact-form textarea {
    resize: vertical;
    min-height: 55px;
    font-family: inherit;
}

#contactForm select,
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

/* Phone Input Wrapper */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #777777;
    border-radius: 10px;
    overflow: hidden;
    background-color: transparent;
    transition: border-color 0.2s ease;
}

.phone-input-wrapper:focus-within { border-color: #111111; }

.flag-select {
    background-color: #E6E6E6;
    border: none;
    border-right: 1px solid #777777;
    padding: 14px 12px;
    font-size: 14px;
    color: #333333;
    outline: none;
    cursor: pointer;
    font-weight: 600;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
}

.phone-input-wrapper input {
    border: none !important;
    border-radius: 0;
    flex-grow: 1;
    background-color: transparent;
}

.phone-input-wrapper input:focus { border: none !important; }

/* Submit Button */
#contactForm button[type="submit"],
.contact-form button[type="submit"] {
    margin-top: 15px;
    background-color: #1A1A1A;
    color: #FFFFFF;
    border: none;
    padding: 16px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: center;
}

#contactForm button[type="submit"]:hover,
.contact-form button[type="submit"]:hover {
    background-color: #333333;
}

/* Custom Phone Wrapper (alternative) */
.custom-phone-wrapper {
    position: relative;
    width: 100%;
}

.custom-phone-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    z-index: 5;
    stroke: #888;
    pointer-events: none;
}

.custom-phone-wrapper:focus-within .input-icon { stroke: var(--olive-dark); }

.phone-input-box {
    display: flex;
    align-items: center;
    width: 100%;
    background: #FBF6E9;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding-left: 42px;
}

.custom-phone-wrapper:focus-within .phone-input-box {
    border-color: var(--olive-dark);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.phone-prefix {
    color: #495057;
    font-weight: 500;
    user-select: none;
    padding-right: 4px;
}

.phone-input-box .form-control {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: #FBF6E9;
    padding-left: 2px !important;
    width: 100%;
}

/* ---------- Responsive (Global) ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        padding-left: 0;
        width: 351px;
    }

    .services-grid, .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-title, .hero-title { font-size: 2.2rem; }

    .header-actions .header-contact-item { display: none; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .tab-content-grid { grid-template-columns: 1fr; }
    .add-services-wrapper { padding: 25px; }

    .process-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process-num { margin: 0 auto; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-benefits { grid-template-columns: 1fr; }
    .fixed-side-cta { display: none; }
}

/* ---------- Form Card Responsive ---------- */
@media (max-width: 767px) {
    .hero-form-card {
        margin-left: 0;
        width: 340px;
    }
    .contact-right { padding: 20px 20px 40px 20px; }
    .contact-left { padding: 60px 20px; }
    

    
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1440px) {
    .side-drawer {
        top: 130px;
        height: 67%;
    }
    .form-peek { left: 431px; }
    .side-drawer {
        top: 150px;
        height: 72%;
    }
}