/* ==========================================
   Global Styles
========================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    background: rgba(7, 10, 41, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

@media (max-width:768px){

nav ul{
    flex-wrap:wrap;
    gap:20px;
}

}

nav a {
    color: #e6e6e6;
    text-decoration: none;
    font-family: 'Abel', sans-serif;
    font-size: 16px;
    transition: color .3s;
}

nav a:hover {
    color: #32F073;
}

/* ==========================================
   Header
========================================== */

header {
    position: relative;
    background: #070a29;
    color: #e6e6e6;
    text-align: center;
    padding: 110px 20px 50px;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("flour.png") center/cover no-repeat;
    opacity: .25;
    pointer-events: none;
}

.header-title {
    position: relative;
    font-size:clamp(2rem,5vw,4rem);
    margin: 0;
    z-index: 1;
}

.logo-image{
    position:absolute;
    top:25px;
    left:30px;
    width:min(200px,18vw);
    padding:10px;
    background:rgba(255,255,255,.08);
    border-radius:12px;
    backdrop-filter:blur(4px);
}

.logo-image img {
    width: 100%;
    height: auto;
    display: block;
}



/* ==========================================
   About Section
========================================== */

.about-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
}

.about-intro {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
}

.about-photo {
    width:100%;
    max-width: 360px;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    flex-shrink: 0;
    align-self: center;
}
.about-text {
    position: relative;
    padding: 20px;
    z-index: 1;
}

.about-text::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("logo.png") center center / 85% no-repeat;
    opacity: .4;
    z-index: -1;
}

.about-text p,
.about-section > p {
    margin-bottom: 25px;
}

/* Gallery section styles*/

#main-gallery-container {
	margin-top:50px;
		}
	
#gallery {
	display:grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
	width:min(75vw,1200px);
	margin: 20px auto;
	position: relative;
	z-index:1;
	}
	
	@media (max-width:900px){

#gallery{
    grid-template-columns:1fr 1fr;
    width:90%;
}

}

@media (max-width:600px){

#gallery{
    grid-template-columns:1fr;
}

}

#gallery::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("logo.png") center center / contain no-repeat;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

figure{
	margin: 0px;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

	
#gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 3px solid #272162;
    box-shadow: 0 0 3px #ccc;
    box-sizing: border-box;
}
	
figcaption{
	background-color: rgba(255,255,255,0.5);
	width: 100%;
	text-align: center;
	/*color: #272162;*/
	z-index: 1;
	padding: 9px 0px 11px 0px;
	font-size:clamp(12px,2.5vw,15px);
	position: absolute;
	bottom: 6px;
	}
	
#image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal-image {
    max-width: 90%;
    max-height: 90%;
    cursor: pointer;
}

#close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    background: rgba(0,0,0,0.4);
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    z-index: 1100;
}

.nav-arrow.left {
    left: 20px;
}

.nav-arrow.right {
    right: 20px;
}

.nav-arrow:hover {
    background: rgba(0,0,0,0.7);
}

	
/* Click & Collect Section */
.contact {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 20px;
    max-width: 1100px;
    margin: 120px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "size message"
        "name message"
        "date message"
        "email message"
        "phone flavour"
        "button button";
    gap: 40px;
}

.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("logo.png") center center / contain no-repeat;
    opacity: .12;
    z-index: 0;
}

.contact > * {
    position: relative;
    z-index: 1;
}
.contact h2{
	font-size: 24px;
	margin-bottom: 20px;
	display: inline-block;
	padding-bottom: 5px;
	letter-spacing: 0.2em;
	}

.contact input {
	font-size: 18px;
	color: #848484;
	line-height: 1.6;
	margin: 0;
	}
	
label {
    color: #070a29;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact input,
.contact select,
.contact textarea,
.contact button {
    font: inherit;
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.2);
    color: #000;
    border: 2px solid #000;
}
  
  .contact textarea {
  min-height: 300px;
  resize: vertical;
}

.name { grid-area: name; }
.date { grid-area: date; }
.message { grid-area: message; }
.phone { grid-area: phone; }
.email { grid-area: email; }
.flavour { grid-area: flavour;}

.contact button {
    grid-area: button;
    width: 200px;
    justify-self: center;
    padding: 12px 24px;
    background: #070a29;
    color: white;
    border: none;
    border-radius: 5px;
}


.size {
    grid-area: size;
}

.contact select {
    font-size: 18px;
    font-family: inherit;
    cursor: pointer;
}

.contact option {
    font-size: 18px;
}



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

footer {
    position: relative;
    background: #070a29;
    color: #e6e6e6;
    padding: 45px 20px;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("flour.png") center/cover no-repeat;
    opacity: .25;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;

    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    text-align: center;
}

.footer-column h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: normal;
    color: white;
}

.footer-column p {
    margin: 10px 0;
}

.footer-column a {
    color: #e6e6e6;
    text-decoration: none;
    transition: color .3s;
}

.footer-column a:hover {
    color: #32F073;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.footer-social a {
    font-size: 28px;
}
/* ==========================================
   Responsive
========================================== */

@media (max-width:768px){

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:20px;
    }

    header{
        padding-top:170px;
    }

    .about-intro{
        flex-direction:column;
        text-align:center;
    }

    .footer-content{
        grid-template-columns:1fr;
    }

    .contact{
        grid-template-columns:1fr;
        grid-template-areas:
            "size"
            "name"
            "date"
            "email"
            "phone"
            "flavour"
            "message"
            "button";

        gap:20px;
        margin:40px 15px;
    }

    .contact textarea{
        min-height:220px;
    }

    .contact button{
        width:100%;
    }

.logo-image{
    position:relative;
    left:auto;
    top:auto;
    margin:20px auto;
    width:140px;
}

}

@media screen and (max-width: 600px) {
	figcaption {
		font-size: 3vw;
		}
		
	#gallery {
		grid-template-columns: 1fr;
		width: 90vw;
		}
		
	}