/* HOME PAGE STYLES */

/* Layout adjustments */
.homepage .container {
    display: flex;
    padding: 60px 0;
    justify-content: space-around;
    flex-direction: column;
    background-size: cover;
}

/* Hero container */
#hero {
    position: relative;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    color: var(--fg);
    z-index: 3;
    justify-content: flex-start;
}
#hero .wrapper {
    width: 90%;
    max-width: 1600px;
    margin-top: 1rem;
}
#hero h1 {
    text-transform: uppercase;
    font-size: 5rem;
}
#hero .hero-left {
    z-index: 0;
    display: flex;
	justify-content: center;
    width: 40%;
    margin-bottom: 1rem;
}
#hero .hero-left img {
    align-self: center;
    border-radius: 20px;
    box-shadow: 0.1rem 0.1rem 1rem rgb(10 10 10 / 35%), var(--aside-shadow-far);
    width: 90%;
    flex-shrink: 0;
    border: 3px solid var(--fg);
    background-color: var(--fg);
}
#hero .hero-right {
    z-index: 1;
    width: 60%;
    margin-bottom: 1rem;
}

/* Informational boxes */
.info-sections {
    height: 100%;
    position: relative;
    z-index: 1;
    background: var(--accent-blue);
}
.info-sections .wrapper {
    width: 90%;
    max-width: 1400px;
    height: auto;
    background: var(--bg);
    margin: auto;
    padding: 3rem 4rem;
    border-radius: 0.5rem;
    border: var(--aside-border);
}
.info-sections section {
    padding: 4rem 0;
}
.info-sections section#second {
    padding-bottom: 4.7rem;
}
.info-second section:last-child {
	padding-bottom: 4rem;
}
.info-sections h2 {
	text-transform: uppercase;
	margin-top: 1rem;
}
#first .wrapper {
    box-shadow: var(--aside-shadow-lblue);
}
#second .wrapper {
    box-shadow: var(--aside-shadow);
}
.content {
    width: 100%;
}

/* TB statement area */
#statement {
    background-color: var(--accent-bg);
    color: var(--bg);
    position: relative;
    z-index: 1;
}
#statement .wrapper {
    padding: 4rem 2rem;
    max-width: 90%;
    text-align: center;
}
#statement p {
    text-transform: uppercase;
    font-size: 5rem;
	line-height: 5rem;
    font-weight: 700;
    margin: 0;
}
#statement p.mobile {
    display: none;
}

/* Take action area */
#take-action h2 {
    font-size: 3.5rem;
	margin-bottom: 2rem;
}
#take-action .wrapper {
    width: 90%;
    max-width: 1600px;
}
.campaigns-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}
.campaign {
    display: flex;
    flex-direction: column;
    width: 33.33%;
    border: var(--aside-border);
    border-radius: 0.5rem;
    padding: 1.6rem 1.2rem;
}
.campaign h3 {
    margin-top: 0.5rem;
	margin-bottom: 1.125rem;
}
.campaign .buttons {
    font-size: 1.125rem;
    margin-top: auto; /* keep buttons on bottom of box */
}
.campaign#danaher {
    box-shadow: var(--aside-shadow-lblue);
}
.campaign#funding-cuts {
    box-shadow: var(--aside-shadow-green);
}
.campaign#hill-day {
    box-shadow: var(--aside-shadow-yellow);
}
/* Join community area */

.join-community {
    width: 85%;
    margin: auto auto;
    padding-top: 2rem;
}
.communities {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0rem;
    padding: 1rem 1rem;
    box-shadow: var(--aside-shadow);
    border: var(--aside-border);
    border-radius: 0.5em;
}
.communities .community-columns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
}
.community {
    display: flex;
    flex-direction: column;
    padding: 1.125rem 0.75rem;
}

.community .button {
    margin-top: auto;
    width: max-content;
}

/* Mobile breakpoints */

@media only screen and (max-width: 1440px) {
    #statement p {
	font-size: 4rem;
	line-height: 4rem;
	max-width: 100%;
    }
}

@media only screen and (max-width: 1200px) {
    .campaigns-wrapper {
        flex-direction: column;
    }
    .campaign, .join-community {
        width: 100%;
    }
}

@media only screen and (max-width: 1024px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    #hero {
        overflow-x: clip;
    }
	#hero .hero-right {
        width: 100%;
    }
    #hero .hero-left {
        display: none;
	height: 0;
	width: 0;
	visibility: hidden;
    }
	.communities .community-columns {
        flex-direction: column;
    }
}

@media only screen and (max-width: 768px) {
    .info-sections .wrapper {
        padding: 1.5rem;
    }
    #statement p.desktop {
        display: none;
    }
    #statement p.mobile {
        display: block;
        max-width: 100%;
    }
    #statement .wrapper {
        padding: 3rem 0;
    }
}
