/*
 * Modern Corporate Stylesheet for DataPure
 * Inspired by clean, professional B2B websites.
 */

/* 1. Global Settings & Variables */
:root {
    --primary-color: #0d47a1; /* Deep, trustworthy blue */
    --secondary-color: #1565c0; /* Slightly lighter blue for accents */
    --accent-color: #ff9800; /* Action-oriented orange (evokes construction) */
    --dark-grey: #333;
    --medium-grey: #555;
    --light-grey: #f4f7f6;
    --white-color: #ffffff;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --heading-font: 'Poppins', sans-serif;
}

/* Add Google Fonts to HTML for this to work */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Poppins:wght@600;700&display=swap');

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--dark-grey);
    background-color: var(--white-color);
    line-height: 1.7;
}

/* 2. Reusable Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

section {
    padding: 80px 0;
}

/* 3. Header & Navigation */
.header {
    background-color: var(--white-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* UPDATED HEADER STYLES */
/* Container to hold both logo links together - NOW STACKS VERTICALLY */
.logo-container {
  display: flex;
  flex-direction: column; /* This is the key change */
  align-items: flex-start; /* Aligns items to the left */
  gap: 0px; /* Remove gap between stacked items */
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.tagline {
  font-size: 0.9rem;
  font-weight: 400;
  color: #777;
  text-decoration: none; /* Removes the underline */
  font-family: var(--font-family);
  transition: color 0.2s ease;
}

.tagline:hover {
  color: var(--primary-color); /* Changes color on hover */
}
/* END UPDATED HEADER STYLES */

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--medium-grey);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}


/* 4. Hero Section */
.hero {
    background-color: var(--light-grey);
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--medium-grey);
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* 5. Services Section */
.services {
    background-color: var(--white-color);
}

.section-title {
    text-align: center;
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--light-grey);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 6. CTA Section */
.cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    margin-bottom: 2rem;
}


/* 7. Footer */
.footer {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    padding: 40px 0;
    text-align: center;
}

.footer .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* NEW FOOTER STYLES */
.footer-attribution {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ccc;
}

.footer-attribution a {
  color: var(--white-color); /* Makes the link white */
  text-decoration: underline;
}

.footer-attribution a:hover {
  text-decoration: none;
}
/* END NEW FOOTER STYLES */

/* Fade-in animation for sections */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 8. Smooth Scrolling & Page-Specific Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

/* Subtitle style for sections */
.subtitle {
    text-align: center;
    max-width: 800px;
    margin: -2rem auto 4rem auto;
    font-size: 1.1rem;
    color: var(--medium-grey);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* 9. About Page & Section Styles */
.about-hero {
    background-color: var(--light-grey);
    padding-top: 80px;
}
.about-section {
    background-color: var(--light-grey);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.team-member {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.team-member h4 {
    margin: 0 0 0.5rem 0;
    font-family: var(--heading-font);
    color: var(--primary-color);
}

/* 10. Contact Page & Form Styles */
.contact-section {
    padding-bottom: 80px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
    align-items: start;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: var(--font-family);
    font-size: 1rem;
    box-sizing: border-box;
}
.contact-info h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.contact-info p {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* Simple responsive fix: hide nav links on small screens */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
