/* =====================================
   NOURISH CAFE WEBSITE CSS STYLE SHEET
   Author: 	 Paul Ellison
   Course: 	 CTEE402 - Media Design and Development
===================================== */


/* =====================================
   CSS VARIABLES
   Stores reusable color values used
   throughout the website to maintain
   consistency. Easy to update / Modify
===================================== */

:root {
	
	/*Primary Palette*/
    --primary-brown: #3f2617;
    --secondary-brown: #2a1b12;

	/*Accent theme used for buttons,
	Highlights and hover effects*/
    --gold: #c7871a;

	/*primary text color*/
    --white: #ffffff;
	
	/*Universal var function to tweak color */
	--header-transparent: rgba(0, 0, 0, 0);
	--forest-overlay-dark: rgba(42, 37, 31, 0.80);
	--forest-overlay-light: rgba(42, 37, 31, 0.60);
}


/* =====================================
   GLOBAL STYLES
   Defines the website's default background,
   Visual style and typography
===================================== */

	/*removes default browser spacing,
	maintains consistent sizing of elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
	
	/*Defines default font family used
	throughout the website
	includes a redundancy font */
    font-family: Candara, Calibri, sans-serif;

    color: var(--white);
	background-color: #2a251f;
	background-image: url("../images/background.png");
	
	/* Ensures the background image fills the
       browser window without distortion or tiling */
    background-size: cover;
    background-position: center;
	background-repeat: no-repeat;
    background-attachment: fixed;
	
    /* Ensures the page occupies at least the
       full height of the browser */
    min-height: 100vh;
}


/* =====================================
   HEADER
===================================== */

/* Flexible Box Layout Module design,
   aligns logo and text content horizontally */
.site-header {
	
    display: flex;
	
    align-items: center;

    max-width: 1600px;

    margin: 25px auto 15px auto;

    padding: 0px 20px;

	/*Semi-transparent background improves readability */
    background-color: var(--header-transparent);

    border-radius: 20px;

}

/* Logo size and positioning inside header */
.logo {

    width: 150px;
    height: auto;

    margin-right: 20px;
	margin-top: -15px;
	margin-bottom: -15px;
}

/* Primary website title syle */
.header-text h1 {

    font-family: "Goudy Old Style", Georgia, serif;

    font-size: 3.4rem;

    font-weight: 500;

}

/* Motto displayed beneath the website title */
.header-text p {

    font-size: 1.2rem;
    font-family: Candara, Calibri, sans-serif;
	
}


/* =====================================
   NAVIGATION
   Provides consistent site navigation
   across all site pages
===================================== */

.main-nav {

    max-width: 1600px;

    margin: 0 auto 15px auto;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 0px 25px;

    background-color: var(--forest-overlay-dark);

    border-radius: 20px;
	
    position: relative;

	min-height: 40px;	

}

/* Navigation link list positioning */
.main-nav ul {

    display: flex;

    list-style: none;

    gap: 50px;
	
	margin: 0 auto;
	
}

/* Navigation link style */
.main-nav a {

    color: white;

    text-decoration: none;

    font-size: 1.3rem;

    font-weight: 600;

    transition: 0.3s;

}

/* Changes link colour when hovered
   to provide visual feedback */
.main-nav a:hover {

    color: var(--gold);

}

/* placeholder search feature */

.search-icon {

    position: absolute;

    right: 25px;

    display: flex;

    align-items: center;

}

.search-icon img {

    width: 40px;

    height: 40px;

    object-fit: contain;

    display: block;

    opacity: 0.85;

    transition: opacity 0.3s ease;

}

.search-icon img:hover {

    opacity: 1;

}


/* =====================================
   MAIN CONTENT - INDEX
===================================== */

.welcome-section {

    max-width: 1600px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 40px;

    padding: 10px 20px;

}


/* =====================================
   LEFT COLUMN - Flex Container
   Section contains styling and positioning
   for index main text container
===================================== */

.welcome-content {

    flex: 1.2;

    text-align: center;

}

.haere-mai {

    font-family: Candara, Calibri, sans-serif;

    font-size: 3rem;

    margin-bottom: 10px;

}

.welcome-content h3 {

    font-size: 2.5rem;

    margin-bottom: 25px;
	font-family: Candara, Calibri, sans-serif;

}

/* to maintain font size specificity to the tagline */
.welcome-content .tagline {

    font-family: "Segoe Print", cursive;

    font-size: 1.5rem;

    font-weight: 300;

    margin-bottom: 35px;

}


/* =====================================
   CTA BUTTONS
===================================== */

.button-group {

    display: flex;

    justify-content: center;

    gap: 30px;

    margin-bottom: 40px;

}

.btn-primary {

    text-decoration: none;

    color: white;

    padding: 15px 25px;

    border: 3px solid var(--gold);

    border-radius: 35px;

    font-weight: bold;

    transition: 0.3s;
	
	font-size: 1.2rem;
}

/* creates an effect on hover */
.btn-primary:hover {

    background-color: var(--gold);

}


/* =====================================
   CONTENT TEXT - Index
===================================== */

.welcome-content p {

    font-family: Candara, Calibri, sans-serif;
    font-size: 1.1rem;

    line-height: 1.8;

    margin-bottom: 5px;

}

/* to maintain font size specificity to the Opening Hours */
.welcome-content .opening-hours {

    font-weight: 600;

    font-size: 1.4rem;

}


/* =====================================
   HERO IMAGE - Index
   Size and positioning
===================================== */

.hero-image {

    flex: 1;

}

.hero-image img {

    width: 100%;

    max-width: 850px;

    height: auto;

    border-radius: 20px;

    display: block;
}

/* =====================================
   ABOUT US PAGE
===================================== */

/* Main layout for aboutus.html*/

.about-section {

    max-width: 1600px;

    margin: auto;

    display: flex;

    align-items: stretch;

    gap: 30px;

    padding: 0 20px 10px 20px;

}

	/* Left text container */

.about-content {

    flex: 0.9;
	
	/*Transparent panel for improved readability */
    background-color: rgba(0,0,0,0.20);

    border-radius: 20px;

    padding: 30px;

    text-align: center;

}

.about-content p {

    font-size: 1.1rem;

    line-height: 1.8;

    margin-bottom: 30px;

}

.about-title-maori {

    font-family: Candara, Calibri, sans-serif;

    font-style: italic;

    font-size: 2.5rem;

    font-weight: 400;

    margin-bottom: 5px;

}

.about-title-english {

    font-size: 2rem;

    font-weight: 400;

    margin-bottom: 25px;

}

/* Right Container */

.about-image {

    flex: 1.3;

}

.about-image img {

    width: 100%;

    height: 100%;

	/* Object-fit ensures the image fills its flex container without distortion */
    object-fit: cover;

    border-radius: 20px;

    display: block;

}

/* =====================================
   GALLERY PAGE
   Configuration for the slideshow
===================================== */

.gallery-container {

    max-width: 1600px;

    margin: auto;

    padding: 10px 20px;

}

/* Main slideshow container config */

.slideshow-container {

    position: relative;

    width: 100%;

    max-width: 900px;

    height: 600px;

    margin: auto;

    overflow: hidden;

    border-radius: 20px;

}

/* Slideshow main content config */

#slide-content img,
#slide-content video {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}

/* Navigation arrows */

.prev,
.next {

    cursor: pointer;

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    padding: 16px;

    color: white;

    font-size: 2.5rem;

    font-weight: bold;

    user-select: none;

    z-index: 10;
	
	transition: all 0.3s ease;

}

/* Hidden section header to
	satisfy html validator and
	adhere to proper HTML semantic */
.visually-hidden {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    white-space: nowrap;

    clip-path: inset(50%);

    border: 0;

}
	/* determines position of navigation arrow */

.prev {

    left: 5px;

}

.next {

    right: 5px;

}

.prev:hover,
.next:hover {
	
	/*creates transparent box over arrow while hovering*/
    background-color: rgba(0,0,0,0.5);

    border-radius: 10px;
	
}

/* Thumbnail row config */

.thumbnail-row {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 15px;

}

.thumbnail {

    width: 80px;

    height: 60px;

    object-fit: cover;

    border-radius: 10px;

    cursor: pointer;

    transition: 0.3s;

}

.thumbnail:hover {

    transform: scale(1.05);

}

/*  Video thumbnail
	Add icon to thumbnail to
	Differentiate media type */

.video-thumbnail {

    position: relative;

    width: 80px;

    height: 60px;

    cursor: pointer;

}

.video-thumbnail img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 10px;

    display: block;

}

.play-icon {

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    width: 28px;

    height: 28px;

    border-radius: 50%;

    background-color: rgba(0,0,0,0.55);

    color: white;

    font-size: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

}

#slide-content {

    width: 100%;

    height: 100%;

}

#slide-content iframe {

    width: 100%;

    height: 100%;

    border: none;

    display: block;

}

/* =====================================
   MENU PAGE
===================================== */

.menu-container {

    max-width: 1600px;

    margin: 10px auto;

    padding: 25px 20px;

    background-color: rgba(0,0,0,0.35);

    border-radius: 20px;

    display: flex;

    gap: 40px;

}

.menu-column {

    flex: 1;

}

.menu-column:first-child {

    border-right: 1px solid rgba(255,255,255,0.20);

    padding-right: 25px;

}

.menu-column:last-child {

    padding-left: 25px;

}

.menu-heading {

    text-align: center;

    font-family: 'Candara', sans-serif;

    font-size: 2rem;

    font-weight: normal;

    margin-bottom: 5px;

}

.menu-divider {

    display: block;

    width: 300px;

    margin: 0 auto 25px auto;
	
	filter: brightness(0) saturate(100%) invert(74%) sepia(34%) saturate(485%) brightness(95%);

}

.menu-item {

    margin-bottom: 25px;

}

.menu-item h3 {

    color: #e3b36a;

    font-size: 1.2rem;

    margin-bottom: 10px;

}

.menu-item p {

    line-height: 1.6;

    font-size: 1.02rem;

}

/* =====================================
   CONTACT PAGE
===================================== */

.contact-container {

    max-width: 1600px;

    margin: 10px auto;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 40px;

}

.contact-details {

    flex: 1;

    text-align: center;

}

.contact-heading {

    font-family: Candara, Calibri, sans-serif;

    font-size: 2.5rem;

    font-weight: normal;

    margin-bottom: 5px;

}

.contact-subheading {

    font-size: 1.8rem;

    font-weight: normal;

    margin-bottom: 50px;

}

.contact-info {

    font-size: 1.2rem;

    line-height: 1.8;

}

.contact-info p {

    margin-bottom: 25px;

}

.contact-map {

    flex: 1;
	
	max-width: 650px;

}

.map-link {

    position: relative;

    display: block;

}

.contact-map img {

    width: 100%;

    border-radius: 20px;

    display: block;

    transition: transform 0.3s ease;

}

.contact-map img:hover {

    transform: scale(1.02);

}

.map-overlay {

    position: absolute;

    bottom: 15px;

    right: 15px;

    padding: 10px 15px;

    background-color: rgba(0,0,0,0.75);

    color: white;

    border-radius: 10px;

    font-size: 0.95rem;

    text-decoration: none;

    transition: background-color 0.3s ease;

}

.map-link:hover .map-overlay {

    background-color: rgba(0,0,0,0.90);

}

/* =====================================
   FOOTER
===================================== */

footer {

    max-width: 1600px;

    margin: 10px auto;

    padding: 5px 20px;

    background-color: var(--forest-overlay-light);

    border-radius: 20px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

}

.footer-left {

    display: flex;

    align-items: center;

    gap: 30px;

}

.footer-logo {

    width: 60px;

    height: auto;

}

.social-icons {

    display: flex;

    gap: 10px;

}

.social-icons img {

    width: 30px;

    height: 30px;

    transition: filter 0.3s ease;

}

/* adds a subtle hover brightness filter */
.social-icons a:hover img {

    filter: brightness(1.25);

}

.footer-centre {

    flex: 1;
	text-align: center;
}

.footer-right {

    text-align: right;

    font-style: italic;

    font-size: 0.9rem;
}


/* =====================================
   TABLET RESPONSIVENESS
===================================== */

@media screen and (max-width: 992px) {

    .welcome-section {

        flex-direction: column;

    }

    .hero-image {

        width: 100%;

    }

}


/* =====================================
   MOBILE RESPONSIVENESS
===================================== */

@media screen and (max-width: 768px) {

    .site-header {

        flex-direction: column;

        text-align: center;
		
		margin: 5px auto 5px auto;

    }
	
	/*fixes background tiling and scrolling */
	body {

		background-size: cover;
		background-position: center center;
		background-repeat: no-repeat;
		background-attachment: fixed;
	}

    .header-text h1 {

        font-size: 2rem;

    }
	
	    .header-text p {

        font-size: 1rem;

    }
	
    .logo {

        width: 80px;

		margin-right: 0;

		margin-top: 0;

		margin-bottom: 0;

    }	

	.main-nav {

    min-height: 30px;

    padding: 4px 8px;

	}

	.main-nav ul {

    flex-direction: row;

    justify-content: center;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

	}
	
	.main-nav a {

    font-size: 0.95rem;

	}
	
    .search-icon {

    position: absolute;

    right: 20px;

    display: flex;

    align-items: center;

    }
	
	.search-icon img {

    width: 28px;

    height: 28px;

	}

    .button-group {

        flex-direction: column;

        align-items: center;

    }
	
	/* Index.html Mobile Font size reduction */

.haere-mai {

    font-size: 2.6rem;

}

.welcome-content h3 {

    font-size: 2.2rem;

}

	/*FOOTER SECTION FOR MOBILE */
	
    footer {

        flex-direction: column;

        text-align: center;

    }
	
	.footer-left {

    flex-direction: column;

    gap: 10px;

	}

    .footer-right {

        text-align: center;

    }

	/* About us Responsiveness */

	.about-section {
		
	/* Stack columns vertically on small screens */
    flex-direction: column;

	}

	.about-content {

    padding: 20px;

	}
	
/* Gallery Mobile */

	.slideshow-container {

    height: 300px;

	}

	.thumbnail {

    width: 60px;

    height: 45px;

	}

	.video-thumbnail {

    width: 60px;

    height: 45px;

	}	

/* Menu Mobile */

	.menu-container {

    flex-direction: column;

	}

	.menu-column:first-child {

    border-right: none;

    padding-right: 0;

	}

	.menu-column:last-child {

    padding-left: 0;

	}

	.menu-divider {

    width: 220px;

	}
	
	.contact-container {

    flex-direction: column;

	}

	.contact-heading {

    font-size: 2.2rem;

	}

	.contact-subheading {

    font-size: 1.5rem;

	}

	.contact-info {

    font-size: 1.1rem;

	}
}