/* ==========================================
   Lion Cottage
   Blockley Village, Gloucestershire
   style.css
========================================== */

:root{

    --background:#f8f5ef;
    --white:#ffffff;
    --text:#303030;
    --heading:#443528;
    --accent:#6d8a63;
    --button:#876441;
    --button-hover:#6d4d2f;
    --shadow:0 18px 40px rgba(0,0,0,.10);

}

*{

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

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Inter",sans-serif;
    color:var(--text);
    background:var(--background);
    line-height:1.8;

}

img{

    display:block;
    max-width:100%;

}

.container{

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

}

/* ===========================
   Navigation
=========================== */

nav{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;

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

    padding:25px 60px;

    transition:.35s;

}

nav.scrolled{

    background:white;
    box-shadow:0 4px 20px rgba(0,0,0,.08);

}

.logo{

    font-family:"Cormorant Garamond",serif;
    font-size:2rem;
    color:white;
    font-weight:700;

}

nav.scrolled .logo{

    color:var(--heading);

}

nav ul{

    display:flex;
    gap:40px;
    list-style:none;

}

nav a{

    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;

}

nav.scrolled a{

    color:var(--heading);

}

nav a:hover{

    opacity:.7;

}

/* ===========================
Hero
=========================== */

header{

    height:100vh;

    background:

    linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.35)),
    url(images/out6.jpeg);

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

}

.hero{

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

    text-align:center;

    height:100%;

}

.hero-content{

    color:white;
    max-width:800px;
    padding:20px;

}

.hero h1{

    font-family:"Cormorant Garamond",serif;

    font-size:5rem;

    margin-bottom:20px;

}

.hero p{

    font-size:1.35rem;

    margin-bottom:40px;

}

.button{

    display:inline-block;

    padding:18px 42px;

    background:white;

    color:#333;

    text-decoration:none;

    border-radius:40px;

    transition:.3s;

}

.button:hover{

    transform:translateY(-3px);

}

/* ===========================
Sections
=========================== */

section{

    padding:40px 0;

}

h2{

    font-family:"Cormorant Garamond",serif;

    color:var(--heading);

    font-size:3rem;

    margin-bottom:30px;

}

h3{

    font-family:"Cormorant Garamond",serif;

    color:var(--heading);

    font-size:2rem;

    margin-bottom:15px;

}

.centre{

    text-align:center;

    max-width:700px;

    margin:0 auto 50px;

}

/* ===========================
Intro
=========================== */

.intro{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:70px;

    align-items:start;

}

.facts{

    display:grid;

    gap:20px;

}

.fact{

    background:white;

    padding:25px;

    border-radius:18px;

    box-shadow:var(--shadow);

}

.fact h3{

    font-size:1.4rem;

    margin-bottom:5px;

}

/* ===========================
Feature rows
=========================== */

.feature{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

    margin-bottom:100px;

}

.feature.reverse .image{

    order:2;

}

.feature.reverse .text{

    order:1;

}

.feature img{

    border-radius:20px;

    box-shadow:var(--shadow);

    transition:.35s;

    cursor:pointer;

}

.feature img:hover{

    transform:scale(1.02);

}

/* ===========================
Gallery
=========================== */

.gallery{

    display:grid;

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

    gap:20px;

}

.gallery img{

    aspect-ratio:1;

    object-fit:cover;

    border-radius:18px;

    box-shadow:var(--shadow);

    transition:.3s;

    cursor:pointer;

}

.gallery img:hover{

    transform:scale(1.03);

}

/* ===========================
Explore
=========================== */

.places{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:40px;

}

.place{

    background:white;

    border-radius:20px;

    overflow:hidden;

    box-shadow:var(--shadow);

}

.place img{

    width:100%;

    height:320px;

    object-fit:cover;

}

.place h3{

    padding:25px 30px 0;

}

.place p{

    padding:0 30px 30px;

}

/* ===========================
Contact
=========================== */

.contact-card{

    max-width:700px;

    margin:auto;

    background:white;

    padding:50px;

    text-align:center;

    border-radius:25px;

    box-shadow:var(--shadow);

}

.contact-image{

    width:320px;

    margin:40px auto 0;

}

/* ===========================
Footer
=========================== */

footer{

    background:#2b2b2b;

    color:white;

    text-align:center;

    padding:60px 20px;

}

footer h3{

    color:white;

}

/* ===========================
Lightbox
=========================== */

#lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.9);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:5000;

}

#lightbox img{

    max-width:92%;

    max-height:90%;

    border-radius:16px;

}

#close{

    position:absolute;

    top:30px;

    right:40px;

    font-size:3rem;

    color:white;

    cursor:pointer;

}

/* ===========================
Responsive
=========================== */

@media(max-width:900px){

nav{

    padding:20px;

}

nav ul{

    gap:18px;

    font-size:.9rem;

}

.hero h1{

    font-size:3.4rem;

}

.intro{

    grid-template-columns:1fr;

}

.feature{

    grid-template-columns:1fr;

}

.feature.reverse .image,
.feature.reverse .text{

    order:initial;

}

.gallery{

    grid-template-columns:1fr 1fr;

}

.places{

    grid-template-columns:1fr;

}

}

@media(max-width:600px){

nav{

    flex-direction:column;

    gap:12px;

}

.hero h1{

    font-size:2.6rem;

}

.hero p{

    font-size:1.05rem;

}

.gallery{

    grid-template-columns:1fr;

}

.contact-image{

    width:240px;

}

h2{

    font-size:2.3rem;

}

}

/* ==========================================
   Scroll Animation
========================================== */

.fade{

    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;

}

.fade.visible{

    opacity:1;
    transform:translateY(0);

}