/* =====================================================
   People First Group - Layout
   Page structure: Navigation, Sections, Footer
   ===================================================== */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    padding: 1.25rem 0;
    transition: padding var(--transition-medium), box-shadow var(--transition-medium);
}

.navbar.scrolled {
    padding: 0.35rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 65px;
    width: auto;
    display: block;
    transition: height var(--transition-medium);
}

.navbar.scrolled .logo img {
    height: 38px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-social a {
    color: var(--color-gray);
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.nav-social a:hover {
    color: var(--color-red);
}

.nav-search {
    position: relative;
}

.nav-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray);
    display: flex;
    align-items: center;
    padding: 0.25rem;
    transition: color var(--transition-fast);
}

.nav-search-toggle:hover {
    color: var(--color-red);
}

.nav-search-box {
    display: none;
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 360px;
    background: var(--color-white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    border-top: 2px solid var(--color-red);
    padding: 1rem;
    z-index: 999;
}

.nav-search-box.active {
    display: block;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-red);
    transition: width var(--transition-medium);
}

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

.nav-links a.active {
    color: var(--color-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-gray);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-red);
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro Section */
.intro-section {
    padding: 6rem 2rem;
    background: var(--color-white);
}

.intro-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    color: var(--color-red);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.intro-text p {
    color: var(--color-gray);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* Services Section */
.services-section {
    padding: 4rem 2rem 5rem;
    background: var(--color-white);
}

.services-heading {
    max-width: 1400px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.services-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 500;
    color: var(--color-red);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Benefits Section */
.benefits-section {
    padding: 6rem 2rem;
    background: var(--color-red);
    text-align: center;
}

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

.benefits-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 3rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Quote Section */
.quote-section {
    padding: 8rem 2rem;
    background:
        linear-gradient(rgba(124, 135, 142, 0.3), rgba(124, 135, 142, 0.3)),
        url('../images/service-3-development.jpg') center/cover no-repeat;
    text-align: center;
    position: relative;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
}

.quote-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quote-content blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-red);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.quote-content cite {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-gray);
    font-style: normal;
}

.quotes-container {
    position: relative;
    min-height: 120px;
}

.quotes-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.quotes-prev,
.quotes-next {
    background: none;
    border: 1px solid rgba(165, 0, 52, 0.3);
    color: var(--color-red);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.7;
}

.quotes-prev:hover,
.quotes-next:hover {
    opacity: 1;
    background: rgba(165, 0, 52, 0.08);
    border-color: var(--color-red);
}

.quote-slide {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.quote-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

/* Team Section */
.team-section {
    padding: 6rem 2rem;
    background: var(--color-beige-light);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    color: var(--color-red);
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.team-intro {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 7rem 2rem;
    background: var(--color-white);
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-red);
    margin-bottom: 1.5rem;
}

.about-headline {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    color: var(--color-red);
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 2.5rem 0;
    max-width: 750px;
}

.about-divider {
    width: 3rem;
    height: 2px;
    background: var(--color-red);
    margin-bottom: 2.5rem;
}

.about-columns {
    columns: 2;
    column-gap: 3rem;
    margin-bottom: 3rem;
}

.about-columns p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.9;
    margin: 0 0 1.25rem 0;
    break-inside: avoid;
}

.about-closing {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    font-style: italic;
    color: var(--color-red);
    line-height: 1.4;
    margin: 0;
    border-top: 1px solid var(--color-beige);
    padding-top: 2rem;
}

/* Footer */
.footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-beige);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-address p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.8;
}

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

.footer-address a:hover {
    color: var(--color-red);
}

.footer-menu h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.footer-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-menu a {
    font-size: 0.9rem;
    color: var(--color-gray);
    transition: color var(--transition-fast);
}

.footer-menu a:first-child {
    color: var(--color-red);
}

.footer-menu a:hover {
    color: var(--color-red);
}

.footer-cta p {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    background: var(--color-beige-light);
    padding: 1rem 0;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--color-gray);
}

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

.footer-bottom a:hover {
    color: var(--color-red);
}

.footer-bottom span {
    margin-left: auto;
}
