/* 
Name: Joshua Limena
File: styles.css
Date:2/27/2026
*/

/* CSS Reset */
body, header, main, nav, footer, figure, figcaption, div, section, ul, li, a, img {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Body style rules */
body {
    text-align: center;
    background-color: #F9F1E7;
    color: #333333;
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
}

/* Business header style rules */
header {
    padding: 10px 0;
    background-color: #ffffff;
}

h1#businessName {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 55px;
    color: #333333;
    letter-spacing: 2px;
}

/* Nav bar Style rules */
nav {
    background-color: #333333;
    padding: 0;
    position: relative;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    flex: 1;
    max-width: 150px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    display: block;
    color: #F9F1E7;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    padding: 20px 0;
}

/* on hover effect*/
nav ul li a:hover {
    background-color: #C5A059;
    color: #333333;
}

/* Dropdown Menu */
.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    min-width: 140px;
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid #C5A059;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    flex: none;
    max-width: none;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    text-align: left;
    color: #F9F1E7;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid #444444;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #C5A059;
    color: #333333;
}

/*  Home Page */
#welcome {
    padding: 60px 20px;
}

h2 {
    font-family: "DM Serif Display", serif;
    font-size: 32px;
    margin-bottom: 20px;
}

#welcome p {
    max-width: 600px;
    margin: 0 auto 10px;
}

.highlight {
    font-family: "Imperial Script";
    font-size: 30px;
    color: #C5A059;
    margin-top: 20px;
}

/* Home Page featured brands grid */
.featuredBrands {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

/* remove underline/color from linked figures on home page */
.featuredBrands a {
    text-decoration: none;
    color: inherit;
}

figure {
    background: white;
    padding: 10px;
    border: 1px solid #ad371f;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

figure:hover {
    transform: translateY(-5px);
}

figure img {
    width: 250px;
    height: 300px;
    display: block;
}

figcaption h3 {
    margin-top: 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Marquee Style */
marquee {
    background-color: #ad371f;
    color: white;
    padding: 10px 0;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 40px;
}

/* Footer*/
footer {
    padding: 50px 0;
    background-color: #ffffff;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

footer a {
    color: #C5A059;
    text-decoration: none;
    font-style: italic;
}

footer p {
    font-size: 12px;
    margin-bottom: 10px;
    color: #888;
}

/* brand page hero */
.brand-hero {
    padding: 50px 20px 30px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.brand-title {
    font-family: "DM Serif Display", serif;
    font-size: 48px;
    font-style: italic;
    font-weight: 400;
    color: #333333;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.brand-subtitle {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Brand Page - Perfume Grid */
.perfume-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 4 columns on desktop */
.perfume-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-items: center;
}

/* perfume card */
.perfume-card {
    background: white;
    padding: 10px;
    border: 1px solid #ad371f;
    border-radius: 5px;
    width: 100%;
    max-width: 220px;
    transition: transform 0.2s ease;
    position: relative;
}

.perfume-card:hover {
    transform: translateY(-5px);
}

/* wrapper around image needed for tooltip overlay */
.img-wrapper {
    position: relative;
    overflow: hidden;
}

.perfume-card img {
    width: 100%;
    height: 260px;
    display: block;
    object-fit: cover;
}

/* 
   Tooltip on Hover
    */
.tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(51, 51, 51, 0.92);
    color: #F9F1E7;
    padding: 12px 10px;
    font-size: 12px;
    line-height: 1.6;
    text-align: left;

    /* Hidden by default */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Show tooltip when hovering the card */
.perfume-card:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-notes {
    margin-bottom: 6px;
}

.tooltip-size {
    color: #C5A059;
    font-size: 11px;
    margin-bottom: 3px;
}

.tooltip-type {
    font-style: italic;
    font-size: 11px;
    color: #ccc;
}

/* Perfume label */
.perfume-name {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
    margin-bottom: 4px;
    color: #333333;
}

/* Price below name */
.perfume-price {
    font-size: 14px;
    color: #C5A059;
    font-weight: 500;
    margin-bottom: 6px;
}

/* 
   Tablet media query (2 columns)
  */
@media (max-width: 900px) {
    .perfume-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 
   Mobile media query (1 column)
   */
@media (max-width: 500px) {
    .perfume-grid {
        grid-template-columns: 1fr;
    }

    .perfume-card {
        max-width: 100%;
    }

    h1#businessName {
        font-size: 38px;
    }

    .brand-title {
        font-size: 34px;
    }

    nav ul li {
        max-width: none;
    }

    nav ul li a {
        font-size: 11px;
        padding: 14px 0;
    }
}

.form-section {
    padding: 50px 20px;
    max-width: 600px;
    margin: 0 auto;
}
 
.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 5px;
    border: 1px solid #eee;
    text-align: left;
}
 
.form-group {
    margin-bottom: 20px;
}
 
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333333;
    margin-bottom: 6px;
}
 
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
 
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C5A059;
    background-color: #fff;
}
 
.form-group textarea {
    resize: vertical;
}
 
/* Checkbox row */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
 
.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #C5A059;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
 
.form-checkbox label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    margin-bottom: 0;
}
 
/* Submit button */
.form-group input[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #333333;
    color: #F9F1E7;
    border: none;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
 
.form-group input[type="submit"]:hover {
    background-color: #C5A059;
    color: #333333;
}

.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fafafa;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    appearance: none;
}

.form-group select:focus {
    outline: none;
    border-color: #C5A059;
    background-color: #fff;
}


.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: left;
}
 
.about-block {
    margin-bottom: 50px;
}
 
.about-block h2 {
    font-family: "DM Serif Display", serif;
    font-size: 28px;
    margin-bottom: 12px;
    color: #333333;
}
 
.about-block p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}
 
/* PNG badge */
.about-badge {
    width: 100px;
    height: auto;
    display: block;
    margin-bottom: 16px;
}
 
/* Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 5px;
}
 
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}
 
/* External links list */
.external-links-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}
 
.external-links-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
}
 
.external-links-list li:last-child {
    border-bottom: none;
}
 
.external-links-list a {
    color: #C5A059;
    text-decoration: none;
    font-weight: 500;
}
 
.external-links-list a:hover {
    text-decoration: underline;
}