/* =================== CSS Variables =================== */
:root {
    --primary-color: #005A9C; /* Professional Blue */
    --secondary-color: #f4f4f4; /* Light Gray */
    --accent-color: #007BFF; /* Brighter Blue for buttons/links */
    --dark-color: #333333;
    --light-color: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* =================== Global Styles =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #666;
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

ul {
    list-style: none;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* =================== Header =================== */
header {
    background: var(--light-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =================== Text-Based Logo =================== */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
}

.logo-Pacific INTEGRATED  {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-ifm {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-color);
    letter-spacing: 3px;
}

.navigation ul {
    display: flex;
}

.navigation ul li {
    margin-left: 25px;
}

.navigation ul li a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.navigation ul li a:hover {
    color: var(--primary-color);
}

/* =================== Hero Section =================== */
.hero {
    padding: 120px 0 80px 0;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    color: var(--primary-color);
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* =================== Services Section =================== */
.services {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
}

/* =================== Detailed Services Section =================== */
.service-details {
    padding: 80px 0;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.detail-card:nth-child(even) {
    flex-direction: row-reverse;
}

.detail-icon {
    font-size: 4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.detail-text h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detail-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 1rem;
}

.detail-text ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* =================== About Section =================== */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* =================== Contact Section =================== */
.contact {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.contact-form button {
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.info-item p {
    margin: 0;
}

.info-item a {
    color: var(--dark-color);
    font-weight: bold;
}

/* =================== Footer =================== */
footer {
    background-color: #222;
    color: #aaa;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-content h3, .footer-content h4 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

.footer-logo-about p {
    max-width: 300px;
}

.footer-quick-links ul li a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-quick-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* =================== Floating Buttons (UPDATED) =================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px; /* CHANGED: Moved from left to right */
    z-index: 999;
}

.floating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-bottom: 15px;
}

.floating-button:hover {
    transform: scale(1.1);
}

.whatsapp-button {
    background-color: #25D366; /* WhatsApp Green */
}

.inspection-button {
    background-color: var(--primary-color);
    width: auto;
    padding: 0 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.inspection-button i {
    margin-right: 10px;
}

.inspection-button span {
    display: inline;
}

/* =================== Responsive Design =================== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero .container,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-image { order: -1; }
    .contact-form button { align-self: center; }

    .detail-card,
    .detail-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    header {
        padding: 1rem 0;
    }
    .logo-text {
        margin-bottom: 1rem;
    }
    .navigation ul {
        padding: 0.5rem 0;
    }
    .navigation ul li {
        margin: 0 10px;
    }
    .hero {
        padding-top: 180px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px; /* Also updated for smaller screens */
    }
    .floating-button {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .inspection-button span {
        display: none;
    }
    .inspection-button {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
    }
    .inspection-button i {
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .service-card {
        padding: 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo-about p {
        margin: 0 auto;
    }
}