/* =====================================================
   Candles & Crafts
   PART 1
===================================================== */

:root{
    --bg:#f6f3ed;
    --surface:#ffffff;
    --dark:#2b2d2c;
    --text:#555;
    --gold:#c89a55;
    --gold-light:#e2c28d;
    --green:#566d61;
    --shadow:0 25px 50px rgba(0,0,0,.10);
    --radius:22px;
    --transition:.35s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:'Inter',sans-serif;
    line-height:1.8;
    -webkit-font-smoothing:antialiased;
}

img{
    display:block;
    width:100%;
}

a{
    text-decoration:none;
}

.container{
    width:min(1180px,92%);
    margin:auto;
}

/* ==========================
HEADER
========================== */

.header{

    position:absolute;
    left:0;
    top:0;
    width:100%;
    z-index:999;

    padding:30px 0;

}

.nav-wrapper{

    width:min(1250px,94%);
    margin:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:12px 26px;

    border-radius:60px;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.15);

}

.logo{

    display:flex;
    align-items:center;
    gap:18px;

}

.logo-mark{

    width:38px;
    height:38px;

}

.logo-text h2{

    color:#fff;
    font-family:'Playfair Display',serif;
    font-size:1.55rem;
    font-weight:600;

}

.logo-text span{

    color:rgba(255,255,255,.75);
    font-size:.82rem;
    letter-spacing:2px;

}

nav{

    display:flex;
    gap:34px;

}

nav a{

    color:white;
    font-size:.95rem;
    font-weight:500;
    position:relative;
    transition:var(--transition);

}

nav a:hover{

    color:var(--gold-light);

}

nav a.active{

    color:white;

}

nav a.active::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-12px;

    width:100%;
    height:2px;

    background:var(--gold);

}

.search-button{

    width:46px;
    height:46px;

    display:grid;
    place-items:center;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    color:white;

    cursor:pointer;

    transition:var(--transition);

}

.search-button:hover{

    background:var(--gold);

}

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

.hero{

    height:100vh;

    position:relative;

    display:flex;
    align-items:center;

    background:

    linear-gradient(
        rgba(25,25,25,.52),
        rgba(25,25,25,.40)
    ),

    url("https://images.unsplash.com/photo-1603006905003-be475563bc59?auto=format&fit=crop&w=1800&q=80");

    background-size:cover;
    background-position:75% center;

}

.hero-overlay{

    position:absolute;
    inset:0;

}

.hero-inner{

    width:min(1200px,92%);
    margin:auto;

    position:relative;

    z-index:2;

    color:white;

}

.eyebrow{

    text-transform:uppercase;
    letter-spacing:5px;
    font-size:.75rem;

    opacity:.85;

    margin-bottom:25px;

}

.hero h1{

    font-family:'Playfair Display',serif;

    font-size:6rem;

    line-height:.95;

    font-weight:600;

    margin-bottom:35px;

    max-width:620px;

}

.divider{

    display:flex;
    align-items:center;
    gap:18px;

    margin-bottom:35px;

}

.divider span{

    display:block;
    width:90px;
    height:1px;

    background:rgba(255,255,255,.35);

}

.divider svg{

    width:70px;

}

.hero-copy{

    max-width:560px;

    font-size:1.15rem;

    color:rgba(255,255,255,.90);

    margin-bottom:50px;

}

.hero-button{

    display:inline-flex;

    align-items:center;

    gap:15px;

    background:white;

    color:var(--dark);

    padding:18px 34px;

    border-radius:60px;

    font-weight:600;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.hero-button span{

    transition:.3s;

}

.hero-button:hover{

    transform:translateY(-6px);

}

.hero-button:hover span{

    transform:translateX(6px);

}

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

section{

    padding:110px 0;

}

section h2{

    font-family:'Playfair Display',serif;

    font-size:3rem;

    color:var(--dark);

    margin-bottom:60px;

}

/* ==========================
FEATURED COLLECTIONS
========================== */

.collections{

    background:#faf8f3;

}

.collection-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:40px;

}

.collection-grid article{

    background:var(--surface);

    border-radius:var(--radius);

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.collection-grid article:hover{

    transform:translateY(-10px);

}

.collection-grid .image{

    overflow:hidden;

    height:260px;

}

.collection-grid img{

    width:100%;
    height:100%;
    object-fit:cover;

    transition:.6s;

}

.collection-grid article:hover img{

    transform:scale(1.08);

}

.collection-grid .content{

    padding:35px;

}

.collection-grid span{

    display:inline-block;

    color:var(--gold);

    font-size:.75rem;

    letter-spacing:3px;

    font-weight:700;

    margin-bottom:18px;

}

.collection-grid h3{

    font-family:'Playfair Display',serif;

    color:var(--dark);

    font-size:2rem;

    margin-bottom:18px;

}

.collection-grid p{

    color:#666;

}

/* ==========================
LATEST ARTICLES
========================== */

.latest{

    background:white;

}

.section-heading{

    max-width:760px;

    margin-bottom:70px;

}

.section-tag{

    color:var(--gold);

    letter-spacing:4px;

    font-size:.8rem;

    font-weight:700;

    margin-bottom:15px;

}

.latest-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:38px;

}

.post-card{

    background:white;

    border-radius:22px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

}

.post-card:hover{

    transform:translateY(-10px);

}

.post-card img{

    height:250px;

    object-fit:cover;

    transition:.6s;

}

.post-card:hover img{

    transform:scale(1.05);

}

.post-content{

    padding:32px;

}

.post-content span{

    display:inline-block;

    color:var(--gold);

    text-transform:uppercase;

    letter-spacing:3px;

    font-size:.75rem;

    margin-bottom:16px;

}

.post-content h3{

    font-family:'Playfair Display',serif;

    color:var(--dark);

    font-size:1.8rem;

    line-height:1.2;

    margin-bottom:18px;

}

.post-content p{

    margin-bottom:28px;

}

.post-content a{

    color:var(--green);

    font-weight:600;

}

.post-content a:hover{

    color:var(--gold);

}

/* ==========================
NEWSLETTER
========================== */

.newsletter{

    background:linear-gradient(135deg,#596f63,#415046);

    color:white;

}

.newsletter-box{

    max-width:900px;

    text-align:center;

}

.newsletter h2{

    color:white;

}

.newsletter p{

    max-width:620px;

    margin:25px auto;

}

.newsletter form{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:18px;

    margin-top:40px;

}

.newsletter input{

    width:380px;

    max-width:100%;

    padding:20px 24px;

    border:none;

    border-radius:60px;

    font-size:1rem;

}

.newsletter button{

    border:none;

    background:var(--gold);

    color:white;

    padding:20px 34px;

    border-radius:52px;

    cursor:pointer;

    font-weight:600;

    transition:var(--transition);

}

.newsletter button:hover{

    background:#d5ab69;

}

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

footer{

    background:#252726;

    color:white;

    padding:90px 0 40px;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr;

    gap:60px;

}

.footer-grid h3{

    font-family:'Playfair Display',serif;

    font-size:2rem;

    margin-bottom:15px;

}

.footer-grid h4{

    margin-bottom:18px;

}

.footer-grid ul{

    list-style:none;

}

.footer-grid li{

    margin-bottom:12px;

}

.footer-grid a{

    color:rgba(255,255,255,.75);

    transition:var(--transition);

}

.footer-grid a:hover{

    color:var(--gold);

}

.copyright{

    text-align:center;

    margin-top:60px;

    padding-top:30px;

    border-top:1px solid rgba(255,255,255,.08);

    color:rgba(255,255,255,.55);

}

/* ===========================================
   PART 3
   Responsive + Final Polish
=========================================== */

html{
    overflow-x:hidden;
}

body{
    overflow-x:hidden;
}

::selection{
    background:var(--gold);
    color:#fff;
}

/* Smooth transitions */

.card,
.post-card,
.collection-grid article,
.hero-button,
.search-button,
nav a{
    transition:all .35s ease;
}

/* Hover lift */

.collection-grid article:hover,
.post-card:hover{
    box-shadow:0 30px 70px rgba(0,0,0,.16);
}

/* Nice text widths */

.hero-copy,
.section-heading p,
.collection-grid p,
.post-content p{
    max-width:60ch;
}

/* Better section spacing */

.collections{
    padding-top:130px;
}

.latest{
    padding-top:130px;
}

.newsletter{
    padding:130px 0;
}

/* Footer tweaks */

footer p{
    color:rgba(255,255,255,.70);
}

footer h3,
footer h4{
    color:#fff;
}

/* Navigation underline animation */

nav a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-10px;

    width:0;

    height:2px;

    background:var(--gold);

    transition:.35s;

}

nav a:hover::after{

    width:100%;

}

nav a.active::after{

    width:100%;

}

/* Buttons */

.hero-button,
.newsletter button{

    letter-spacing:.3px;

}

.hero-button:hover{

    background:var(--gold);

    color:white;

}

/* Images */

.collection-grid img,
.post-card img{

    filter:saturate(.95);

}

/* Mobile */

@media (max-width:1100px){

.hero h1{

font-size:4.8rem;

}

nav{

gap:22px;

}

}

@media (max-width:900px){

.header{

padding:20px 0;

}

.nav-wrapper{

flex-direction:column;

gap:20px;

border-radius:24px;

padding:25px;

}

nav{

flex-wrap:wrap;

justify-content:center;

gap:16px;

}

.hero{

height:auto;

padding:170px 0 120px;

}

.hero h1{

font-size:3.8rem;

}

.hero-copy{

font-size:1rem;

}

.footer-grid{

grid-template-columns:1fr;

text-align:center;

}

}

@media (max-width:600px){

.hero h1{

font-size:3rem;

}

section{

padding:80px 0;

}

section h2{

font-size:2.2rem;

}

.hero-button{

width:100%;

justify-content:center;

}

.newsletter input{

width:100%;

}

.newsletter button{

width:100%;

}

.collection-grid{

grid-template-columns:1fr;

}

.latest-grid{

grid-template-columns:1fr;

}

.logo-text span{

display:none;

}

.logo-text h2{

font-size:1.2rem;

}

}

/* Small luxury touches */

.hero{

background-attachment:fixed;

}

.collection-grid article,
.post-card{

border:1px solid rgba(0,0,0,.04);

}

.collection-grid article:hover,
.post-card:hover{

transform:translateY(-12px);

}

.hero-button{

box-shadow:
0 15px 40px rgba(0,0,0,.20);

}

.newsletter button{

box-shadow:
0 10px 25px rgba(0,0,0,.15);

}

.search-button{

box-shadow:
0 8px 20px rgba(0,0,0,.10);

}

.logo-mark{

filter:drop-shadow(0 2px 10px rgba(216,165,91,.35));

}