/*
 * Global styles for 1flo website
 *
 * This stylesheet takes inspiration from the colour palette of Tata Tele Business Services
 * (deep blues with a warm accent) and the minimal typography and generous white
 * space associated with Apple’s design language. The layout is responsive, so
 * content reflows gracefully on smaller screens.
 */

/* CSS variables for easy theming */
:root {
    --primary: #012d63;      /* deep blue reminiscent of TTBS */
    --secondary: #ff6f00;    /* warm orange accent */
    --light-bg: #f7f8fa;     /* light background for contrast */
    --dark-text: #0d1b2a;    /* dark text colour for readability */
}

/* Reset some basic elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header and navigation */
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Style for the logo image inside the header */
.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary);
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary), #014d8d);
    color: #fff;
    padding: 100px 0 140px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #e05b00;
}

/* Solutions section */
.solutions {
    padding: 80px 0;
}

.solutions h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: var(--primary);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

/* About section */
.about {
    background: var(--light-bg);
    padding: 80px 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary);
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    color: #333;
    text-align: center;
}

/* Contact section */
.contact {
    padding: 80px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--primary);
}

.contact p {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.contact-details i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.contact-details a {
    color: var(--primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #f0f3f8;
    padding: 1.5rem 0;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer a {
    color: var(--primary);
}

/* Responsive behaviour */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}