/* CSS Document */

/* --- BRAND --- */
	:root {
		--brand-charcoal: #4e4d5c; 
		--brand-white: #ffffff;
		--brand-blue: #a3c1e3;    
		--brand-pink: #f2cbdc;    /* Soft Pink Highlight */
		--brand-pink-dark: #d991b1; /* Deeper pink for text/links */
		--script-font: 'Great Vibes', cursive;
		--main-font: 'Montserrat', sans-serif;
	}

	body {
    font-family: var(--main-font);
    margin: 0;
    color: var(--brand-charcoal);
    line-height: 1.6;
    background-color: #fcf8f9;
}

.container {
    max-width: 1440px;
    padding: 0 3rem;
    margin: 0 auto;
}
/* --- INLINE LOGO & TEXT --- */
	header {
		padding: 30px 0;
		text-align: center;
		border-bottom: 4px solid var(--brand-pink);
		background-color: #fff;
	}

/* Keeps the clickable header from getting underlined */
	.header-link {
		text-decoration: none !important; 
		color: inherit !important; /* Forces it to ignore default blue link colors */
		display: block; 
		}
}
	.logo-area {
		display: flex;
		align-items: center;    /* Vertically centers logo with text */
		justify-content: center; /* Centers the whole unit on the page */
		gap: 20px;               /* Space between logo and text */
	}

	.logo-area img {
		height: 200px;           /* Adjust this height to match your text size */
		width: auto;            /* Keeps proportions perfect */
		margin: 0;              /* Removes old margins */
		max-height: 80px; /* Slightly smaller for a cleaner look */
		margin-bottom: 5px;
	}

	.main-brand-text {
		font-family: var(--script-font);
		font-size: 3.2rem;
		color: var(--brand-blue);
		margin: 0;
		line-height: 1;         /* Prevents extra spacing above/below script text */
	}

/* --- UPDATED HEADER & NAV --- */
	.main-brand-text {
		font-family: var(--script-font);
		font-size: 3.5rem; /* Made it pop a bit more */
		color: var(--brand-blue);
		margin: 0;
		letter-spacing: 1px;
	}

	nav {
		background-color: #fcf8f9;
		padding: 0; /* Let the links handle the padding */
		text-align: center;
		border-top: 1px solid var(--brand-pink);
		border-bottom: 1px solid var(--brand-pink);
		position: sticky; /* Keeps nav visible while scrolling */
		top: 0;
		z-index: 9999;
	}

	nav a, .dropbtn {
		display: inline-block;
		text-decoration: none;
		color: var(--brand-charcoal);
		padding: 18px 20px; /* Vertical padding makes the bar taller */
		font-weight: 600;
		font-size: 0.75rem; /* Smaller, chicer font size */
		text-transform: uppercase;
		letter-spacing: 2px;
		transition: all 0.3s;
		border: none;
		background: none;
		cursor: pointer;
	}

	nav a:hover, .dropdown:hover .dropbtn {
		color: var(--brand-pink-dark);
		background-color: #fff; /* Subtle highlight on hover */
	}
/* --- HERO --- */
	.hero {
		background: linear-gradient(rgba(78, 77, 92, 0.6), rgba(78, 77, 92, 0.6)), url("images/hero-cookies.jpeg");
		background-size: cover;
		background-position: center;
		color: var(--brand-white);
		padding: 140px 20px;
		text-align: center;
		position: relative;
	}

/* Flavor List Layout */
	.flavor-section { margin-bottom: 60px; }
	.flavor-row {
		display: flex;
		justify-content: space-between;
		border-bottom: 1px dashed var(--brand-pink);
		padding: 15px 0;
		align-items: baseline;
	}
	.flavor-name { font-weight: 700; font-size: 1.2rem; color: var(--brand-charcoal); }
	.flavor-description { font-size: 0.95rem; color: #666; max-width: 600px; text-align: right; }
	.badge {
		font-size: 0.7rem;
		padding: 2px 8px;
		border-radius: 10px;
		margin-left: 5px;
		vertical-align: middle;
		font-weight: 700;
		text-transform: uppercase;
		}
	.badge-v { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
	.badge-gf { background-color: #fdf2f7; color: #d991b1; border: 1px solid #f2cbdc; }
        footer { background: var(--brand-charcoal); color: white; padding: 40px 20px; text-align: center; font-size: 0.8rem; margin-top: 80px;}

/* Pink decorative "sprinkle" element */
	.hero::after {
		content: '';
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 100px;
		height: 5px;
		background: var(--brand-pink);
	}

/* --- BUTTONS --- */
	.btn-pink {
		display: inline-block;
		background-color: var(--brand-pink);
		color: var(--brand-charcoal);
		padding: 12px 30px;
		text-decoration: none;
		border-radius: 50px;
		font-weight: 700;
		margin-top: 20px;
		transition: transform 0.2s, background-color 0.2s;
	}

	.btn-pink:hover {
		background-color: var(--brand-pink-dark);
		transform: scale(1.05);
		color: white;
	}
/* TAB BUTTONS */
	.tab-btn {
			display: inline-block;
			background-color: var(--brand-pink); /* Using her brand pink */
			color: var(--brand-charcoal);
			padding: 15px 40px;
			text-decoration: none;
			border-radius: 50px;
			font-weight: 700;
			font-size: 1rem;
			letter-spacing: 1px;
			transition: all 0.3s ease;
			border: none;
			cursor: pointer;
			box-shadow: 0 4px 15px rgba(217, 145, 177, 0.2);
		}

/* Style for when a button is clicked/active */
	.tab-btn.active {
			background-color: var(--brand-pink);
			color: white;
			box-shadow: 0 4px 10px rgba(217, 145, 177, 0.3);
		}

/* Hover effect */
	.tab-btn:hover {
			background-color: var(--brand-pink-dark);
			color: white;
			transform: scale(1.05);
			box-shadow: 0 6px 20px rgba(217, 145, 177, 0.4);
		}

/* Transition animation for the content */
	.menu-content {
			animation: fadeIn 0.4s ease-in-out;
		}

		@keyframes fadeIn {
			from { opacity: 0; transform: translateY(10px); }
			to { opacity: 1; transform: translateY(0); }
		}

/* --- GALLERY GRID --- */
	.cookie-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 30px;
		padding: 50px 0;
	}

	.cookie-item {
		border: 1px solid #eee;
		border-bottom: 5px solid var(--brand-pink); /* Pink highlight on cards */
		border-radius: 12px;
		overflow: hidden;
	}

	.cookie-img-placeholder {
		height: 250px;
		background-color: #fdf2f7; /* Light pink background for missing photos */
		display: flex;
		align-items: center;
		justify-content: center;
	}

/* --- CONTACT (The Footer Area) --- */
	.contact-section {
		background-color: #f9f9fb;
		padding: 80px 20px;
		text-align: center;
	}

	.contact-section h2 {
		font-family: var(--script-font);
		font-size: 3rem;
		color: var(--brand-pink-dark);
	}

	.info-box {
		background: white;
		border: 2px solid var(--brand-pink);
		padding: 30px;
		max-width: 500px;
		margin: 0 auto;
		border-radius: 20px;
	}

	.section-divider {
		border-top: 1px dashed var(--brand-pink); /* Or use #eee for a faint gray */
		width: 60%; /* Keeps it from stretching all the way to the edges */
		margin: 40px auto; /* Adds space above and below */
	}
	footer {
		background: var(--brand-charcoal);
		color: white;
		padding: 40px 20px;
		text-align: center;
		font-size: 0.8rem;
	}
/* Container for the dropdown */
	.dropdown {
		display: inline-block;
		position: relative;
	}

/* The actual hidden menu */
	.dropdown-content {
		display: none; /* Hide by default */
		position: absolute;
		background-color: #ffffff;
		min-width: 200px;
		box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
		border-radius: 10px;
		border: 1px solid var(--brand-pink);
		z-index: 1000;
		text-align: left;
		margin-top: 0px;
		padding: 10px 0;
	}

/* Individual links inside the dropdown */
	.dropdown-content a {
		color: var(--brand-charcoal);
		padding: 12px 20px;
		text-decoration: none;
		display: block;
		text-transform: none; /* Keeps it from being all caps if your nav is caps */
		font-size: 0.9rem;
	}

/* Hover effect for dropdown links */
	.dropdown-content a:hover {
		background-color: #fcf8f9;
		color: var(--brand-pink-dark);
	}

/* THE MAGIC: Show the menu on hover */
	.dropdown:hover .dropdown-content {
		display: block;
	}		

/* --- GALLERY GRID --- */
	h2 { font-family: var(--script-font); font-size: 3.5rem; color: var(--brand-pink-dark); text-align: center; margin-bottom: 10px; }
	.gallery-intro { text-align: center; margin-bottom: 50px; color: #777; font-style: italic; }


	.gallery-item:hover {
		transform: scale(1.02);
		box-shadow: 0 10px 20px rgba(0,0,0,0.1);
	}


	/* --- CATEGORY LABELS --- */
	.category-header {
		color: var(--brand-blue);
		border-bottom: 2px solid var(--brand-pink);
		padding-bottom: 5px;
		margin: 40px 0 20px 0;
		font-size: 1.5rem;
	}

	/* --- ORDER BUTTON STYLE --- */
	.btn-pink {
		display: inline-block;
		background-color: var(--brand-pink);
		color: var(--brand-charcoal);
		padding: 15px 40px;
		text-decoration: none;
		border-radius: 50px;
		font-weight: 700;
		transition: all 0.3s ease;
	}

	.menu-content h3 {
		font-family: var(--script-font);
		font-size: 2.8rem !important; /* Making the script font the star */
		color: var(--brand-blue) !important;
		text-align: center;
		margin-bottom: 5px;
		border-bottom: none !important; /* Removing the old plain border */
		position: relative;
	}

	.section-description {
		text-align: center;      /* This centers the text */
		color: --brand-charcoal; /* A soft gray that matches your brand */
		font-style: italic;      /* Adds a nice artisan feel */
		font-size: 0.95rem;      /* Slightly smaller than the header */
		padding-bottom: 20px;
		margin-top: -15px;       /* Pulls it closer to the blue header */
		margin-bottom: 5px;     /* Space before the cookie list begins */
		max-width: 80%;          /* Prevents text from being too wide on desktop */
		margin-left: auto;       /* Centers the paragraph block itself */
		margin-right: auto;
		border-bottom: 1px solid transparent;
		border-image: linear-gradient(to right, transparent, var(--brand-pink), transparent) 1;
	}

/* --- ENHANCED MENU SECTIONS --- */
	.menu-content {
		background-color: #fff;
		border-radius: 20px;
		padding: 40px;
		margin-bottom: 50px;
		box-shadow: 0 10px 30px rgba(78, 77, 92, 0.05); /* Very soft charcoal shadow */
		border: 1px solid #f9f9fb;
		transition: transform 0.3s ease;
	}

/* Add a soft pink glow when looking at a section */
	.menu-content:hover {
		transform: translateY(-5px);
		box-shadow: 0 15px 40px rgba(217, 145, 177, 0.15);
	}

/* Decorative "Sprinkle" line under the header 
	.menu-content h3::after {
		content: '';
		display: block;
		width: 60px;
		height: 3px;
		background: var(--brand-pink);
		margin: 10px auto 0;
		border-radius: 50px;
	}*/

/* Individual Flavor Rows */
	.flavor-row {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20px 15px;
		border-bottom: 1px solid #f4f4f4;
		transition: all 0.2s ease-in-out;
		border-radius: 12px; /* Makes the hover effect look like a card */
	}

/* The Magic Hover: Highlights the cookie the user is looking at */
	.flavor-name {
		font-family: var(--main-font);
		font-weight: 700;
		color: var(--brand-charcoal);
		font-size: 1.1rem;
		letter-spacing: 0.5px;
	}

	.flavor-description {
		font-style: italic;
		color: #888;
		font-size: 0.9rem;
		max-width: 100%;
		text-align: right;
	}

/* --- ACTIVE NAVIGATION HIGHLIGHTS --- */
/* Replaces the underline with a soft pink pill highlight */
.page-home .nav-home,
.page-flavors .nav-flavors,
.page-custom .nav-custom,
.page-current .nav-current,
.page-reviews .nav-reviews,
.page-gallery .nav-gallery,
.page-diy .nav-diy {
    background-color: var(--brand-pink);
    color: var(--brand-charcoal);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none !important; /* Forces the underline away */
}

/* Highlight the dropdown buttons when on their sub-pages */
.page-custom .btn-sweet,
.page-current .btn-sweet,
.page-diy .btn-sweet,
.page-reviews .btn-experience, /* Note: Added the 's' to match page-reviews above */
.page-gallery .btn-experience {
    background-color: var(--brand-pink);
    color: var(--brand-charcoal);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none !important;
}


/* REVIEWS */
	.tab-btn {
		display: inline-block;
		background-color: var(--brand-pink);
		color: var(--brand-charcoal);
		padding: 15px 40px;
		border-radius: 50px;
		font-weight: 700;
		transition: all 0.3s ease;
		border: none;
		cursor: pointer;
		margin: 0 10px;
	}
	.tab-btn.active { background-color: var(--brand-pink-dark); color: white; }
	.tab-btn:hover { transform: scale(1.05); background-color: var(--brand-pink-dark); color: white; }

/* Review Grid */
	.review-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
		gap: 30px;
		animation: fadeIn 0.5s ease-in-out;
		margin-top: 40px;
		justify-content: center; /* This centers the cards! */
	}

	.review-card {
		background: #fff;
		padding: 40px;
		border-radius: 20px;
		border: 1px solid var(--brand-pink);
		box-shadow: 0 10px 20px rgba(242, 203, 220, 0.2);
		transition: 0.3s;
		position: relative;
	}
	.review-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(217, 145, 177, 0.3); }

	.stars { color: var(--brand-pink-dark); margin-bottom: 15px; font-size: 1.2rem; }
	.quote { font-style: italic; font-size: 1rem; color: var(--brand-charcoal); }
	.author { margin-top: 20px; font-weight: 700; color: var(--brand-blue); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }
	.tag { font-size: 0.7rem; color: #bbb; text-transform: uppercase; display: block; margin-top: 5px; }

	.intro-text {
		text-align: center;
		margin-bottom: 50px;
		font-style: italic;
		color: #777;
		font-size: 1.1rem;
	}
/* Photo Grid (The secondary tab) */
	.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    animation: fadeIn 0.5s ease-in-out;
    margin-top: 40px;
    justify-content: center; /* This centers the photos! */
	}
	.photo-item { height: 300px; background: #eee; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #aaa; border: 1px solid var(--brand-pink); }

	@keyframes fadeIn {
		from { opacity: 0; transform: translateY(10px); }
		to { opacity: 1; transform: translateY(0); }
	}

	footer { background: var(--brand-charcoal); color: white; padding: 40px 20px; text-align: center; font-size: 0.8rem; margin-top: 80px;}

/* --- FLEX ACCORDION GALLERY --- */
.gallery-container {
    display: flex;
    width: 100%;
    height: 400px; 
    gap: 10px;
    margin: 0 auto 60px auto;
}

.card {
    flex: 1 1 1%; /* This is the magic ratio from the CodePen */
    min-width: 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #fdf2f7; 
    box-shadow: 0 5px 15px rgba(217, 145, 177, 0.1);
    transition: flex 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Snappier and smoother */
    will-change: flex; /* Tells the browser to prepare for this specific movement */
}

/* Apply expansion to BOTH desktop hovers and mobile taps */
.card:hover, 
.card.featured {
	flex: 2 1 60%; /* Takes up more of the row than a standard hover */
    z-index: 10; /* Ensures it sits slightly above the others */
    border-color: var(--brand-pink-dark);
}

.card__inner {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

.card:hover img,
.card.featured img {
    transform: scale(1.1); /* This provides the 'zoom' effect on the cookie art */
}

/* --- Hamburger Menu Setup (Hidden on Desktop) --- */
.menu-toggle {
  display: none; 
  cursor: pointer;
  padding: 10px;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--brand-pink-dark); /* Uses your brand color */
  margin: 5px auto;
  transition: all 0.3s ease;
}

/* --- Mobile View Settings --- */
@media only screen and (max-width: 768px) {
  .menu-toggle {
    display: block; /* Shows the hamburger on phones */
  }
  
  /* Hides the main link container by default on mobile */
  #nav-container {
    display: none; 
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  /* This class turns the menu on when tapped */
  #nav-container.active {
    display: flex; 
  }

  /* Adjusts your dropdowns so they stack nicely on small screens */
  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
  }
}
/* --- MOBILE RESPONSIVENESS FIXES --- */


@media only screen and (max-width: 768px) {
    /* 2. Fix the Container Padding (3rem is too much for phones) */
    .container {
        padding: 0 15px !important; 
    }

    /* 3. Shrink massive text so it doesn't push the screen wide */
    .main-brand-text {
        font-size: 2.2rem !important;
    }
    
    .hero h2 {
        font-size: 2.2rem !important;
    }

    /* 4. Ensure the Meet the Baker photo doesn't overflow */
    #about img {
        max-width: 250px !important;
    }
	/* 5. Add breathing room to filter buttons when they stack */
    .tab-btn {
        margin-bottom: 15px !important; /* Adds vertical space between stacked rows */
        margin-left: 5px !important;    /* Slightly reduces horizontal gap */
        margin-right: 5px !important;
        padding: 12px 20px !important;  /* Shrinks the button a bit to fit mobile screens perfectly */
    }
}

.gallery-item.hidden {
    display: none !important;
}

/* --- STAGGERED MASONRY GALLERY --- */

.gallery-grid {
    display: block; /* Turns off the old rigid grid */
    column-width: 280px; /* Tells the browser to make columns this wide */
    column-gap: 15px; /* Space between the columns */
    margin-bottom: 80px;
}

.gallery-item {
    display: inline-block; /* Allows them to stack fluidly */
    width: 100%; /* Makes sure the photo fills its column */
    margin-bottom: 15px; /* Space between photos stacked vertically */
    break-inside: avoid; /* CRUCIAL: Prevents a photo from being chopped in half across two columns */
    
    /* These are your existing beautiful styles! */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f9f9fb;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto; /* Lets the image dictate its natural staggered height */
    display: block;
}
/* Forces the lightGallery popup to sit above the sticky nav */
.lg-outer, 
.lg-backdrop {
    z-index: 99999 !important; 
}