/* ==========================================================
   PILLARS COFFEE WEBSITE
   Design System v1
========================================================== */


/* ==========================
   VARIABLES
========================== */

:root {

    --background: #f8f6f2;
    --surface: #ffffff;

    --text: #181818;
    --muted: #6c6c6c;

    --accent: #b89463;

    --border: #e8e2da;

    --radius: 24px;

    --container: 1240px;

    --transition: .35s ease;

}



/* ==========================
   RESET
========================== */


* {

    margin:0;
    padding:0;
    box-sizing:border-box;

}


html {

    scroll-behavior:smooth;

}


body {

    background:var(--background);

    color:var(--text);

    font-family:

    "Inter",
    Arial,
    sans-serif;

    line-height:1.6;

    overflow-x:hidden;

}


img {

    width:100%;

    display:block;

}


a {

    color:inherit;

    text-decoration:none;

}



/* ==========================
   GLOBAL
========================== */


.container {

    width:min(92%,var(--container));

    margin:auto;

}


section {

    padding:120px 0;

}


h1,h2,h3 {

    font-weight:500;

    letter-spacing:-0.04em;

    line-height:1.05;

}


h1 {

    font-size:clamp(3.5rem,8vw,7rem);

}


h2 {

    font-size:clamp(2.5rem,5vw,4.5rem);

}


p {

    color:var(--muted);

    font-size:1.05rem;

}



/* ==========================
   BUTTONS
========================== */


.button {

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:16px 32px;

    border-radius:999px;

    background:var(--text);

    color:white;

    font-weight:500;

    transition:var(--transition);

}


.button:hover {

    transform:translateY(-3px);

}


.button-light {

    background:white;

    color:black;

}



/* ==========================
   NAVIGATION
========================== */


header {

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    transition:.3s;

}


header.scrolled {

    background:rgba(248,246,242,.9);

    backdrop-filter:blur(12px);

    border-bottom:1px solid var(--border);

}



.nav {

    height:90px;

    display:flex;

    align-items:center;

    justify-content:space-between;

}



.logo {

    width:130px;

}



.nav-links {

    display:flex;

    align-items:center;

    gap:36px;

}



.nav-links a {

    font-size:.95rem;

}



.menu-toggle {

    display:none;

    font-size:30px;

}



/* ==========================
   HERO
========================== */


.hero {

    height:100vh;

    min-height:700px;

    display:flex;

    align-items:center;

    position:relative;

    color:white;

}



.hero::before {

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(
    rgba(0,0,0,.35),
    rgba(0,0,0,.45)
    ),

    url("assets/home/hero.jpg");


    background-size:cover;

    background-position:center;

    z-index:-1;

}



.hero-content {

    max-width:850px;

}



.hero p {

    color:white;

    max-width:600px;

    margin:30px 0 45px;

    font-size:1.2rem;

}



/* ==========================
   IMAGE SECTIONS
========================== */


.split {

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}



.round-image {

    border-radius:var(--radius);

    overflow:hidden;

}



.round-image img {

    aspect-ratio:1/1;

    object-fit:cover;

}



/* ==========================
   CARDS
========================== */


.cards {

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}



.card {

    background:white;

    border-radius:var(--radius);

    overflow:hidden;

    transition:var(--transition);

}



.card:hover {

    transform:translateY(-8px);

}



.card-content {

    padding:30px;

}



.card img {

    height:320px;

    object-fit:cover;

}



/* ==========================
   FEATURE BEAN
========================== */


.feature {

    display:grid;

    grid-template-columns:1.2fr .8fr;

    gap:80px;

    align-items:center;

}



.feature img {

    border-radius:var(--radius);

}



/* ==========================
   FOOTER
========================== */


footer {

    background:#111;

    color:white;

    padding:80px 0;

}


footer p {

    color:#aaa;

}



.footer-grid {

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:40px;

}



/* ==========================
   ANIMATION
========================== */


.reveal {

    opacity:0;

    transform:translateY(40px);

    transition:.8s ease;

}



.reveal.active {

    opacity:1;

    transform:none;

}



/* ==========================
   MOBILE
========================== */


@media(max-width:900px){


.nav-links {

    display:none;

    position:absolute;

    top:90px;

    left:0;

    width:100%;

    background:white;

    padding:40px;

    flex-direction:column;

}


.nav-links.active {

    display:flex;

}


.menu-toggle {

    display:block;

}



.split,
.feature,
.cards,
.footer-grid {

    grid-template-columns:1fr;

}


section {

    padding:80px 0;

}


.hero {

    min-height:650px;

}


}
