/*
    Author: Prince Gentillon
    Date: 10/10/2025
    File Name: styles.css
*/

/* ==================== CSS Reset ==================== */
body, header, nav, main, footer, img, h1, ul, section, aside, figure, figcaption {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Universal box sizing */
* {
    box-sizing: border-box;
}

/* Ensure images scale properly */
img {
    max-width: 100%;
    display: block;
}

/* ==================== Base Styles ==================== */
:root {
    /* Anthropologie-inspired: warm neutrals + earthy accents */
    --bg: #f6f1ea;          /* parchment */
    --surface: #fffdf9;     /* warm white */
    --text: #2f2a24;        /* espresso */
    --muted: #6a6259;       /* warm gray */
    --brand: #c07d57;       /* terracotta */
    --brand-2: #2f2a24;     /* espresso */
    --accent: #8a9b86;      /* sage */
    --border: #e3d8cc;
    --shadow: 0 12px 28px rgba(47, 42, 36, 0.12);
}


body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg);
    color: var(--text);
}

#container {
    width: 100%;
    margin: 0 auto;
}

/* ==================== Header Styles ==================== */
header {
    text-align: center;
    font-size: 1.5em;
    color: var(--brand-2);
    background-color: var(--surface);
    padding: 1.5em 0;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-family: 'DM Serif Display', serif;
    font-style: normal;
}

.tab-desk {
    display: none;
}

.tagline {
    margin-top: 0.35em;
    font-size: 0.9em;
    color: var(--muted);
}

.site-header {
    background: #f4ece0;
    padding: 15px 40px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 200px;   /* adjust size here */
    width: auto;
    display: block;
}

.nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #4a3f35;
    font-weight: 500;
}

/* ==================== Navigation Styles ==================== */
nav {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav li {
    display: block;
    font-size: 1.05em;
    letter-spacing: 0.02em;
    border-top: 1px solid var(--border);
}

nav li a {
    display: block;
    color: var(--brand-2);
    text-align: center;
    padding: 0.5em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

nav li a:hover,
nav li a.current {
    background-color: rgba(255,255,255,0.12);
}

/* ==================== Main Content Styles ==================== */
main {
    padding: 2%;
    background-color: var(--bg);
    overflow: auto;
    font-family: 'Roboto', sans-serif;
}

main p {
    font-size: 1.1em;
    line-height: 1.5;
}

.action {
    font-size: 1.25em;
    color: var(--brand);
    font-weight: bold;
}




/* ==================== Components (Beauty Store) ==================== */
.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero {
        height: 100vh;       /* taller = less zoom */
          /* prevents giant monitors from overgrowing */
    }
}


/* Soft Anthropologie-style warm overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(244, 236, 224, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 650px;
    padding: 40px;
}

.hero-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    color: #4a3f35;
    margin-bottom: 20px;
}

.hero-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: #5c5046;
    margin-bottom: 30px;
}

.hero-actions .btn {
    margin: 0 10px;
}
.btn {
    display: inline-block;
    border: 1px solid var(--brand);
    background-color: var(--brand);
    color: #fff;
    text-decoration: none;
    padding: 0.7em 1.1em;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.08s ease, filter 0.2s ease;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-2);
    border-color: var(--border);
}

.btn-sm {
    padding: 0.55em 0.9em;
    font-size: 0.95em;
}

.badge {
    display: inline-block;
    margin-left: 0.35em;
    min-width: 1.6em;
    text-align: center;
    padding: 0.12em 0.45em;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 800;
    font-size: 0.85em;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    margin-top: 1em;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1em;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-bottom: 0.25em;
    color: var(--brand-2);
}

.link,
.link-btn {
    display: inline-block;
    margin-top: 0.6em;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.link:hover,
.link-btn:hover {
    text-decoration: underline;
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.notice {
    margin-top: 1.25em;
    padding: 1em;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.65);
    color: var(--muted);
}

.muted { color: var(--muted); }
.small { font-size: 0.9em; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.section { margin-top: 1.2em; }
.section-title {
    font-family: 'DM Serif Display', serif;
    color: var(--brand-2);
    margin-bottom: 0.5em;
}

/* Shop */
.shop-toolbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1em;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75em;
    margin-top: 0.75em;
}

.field {
    display: grid;
    gap: 0.35em;
}

.field-label {
    font-size: 0.9em;
    color: var(--muted);
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 0.75em;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
}

input:focus, select:focus {
    outline: 3px solid rgba(178, 76, 122, 0.20);
    border-color: rgba(178, 76, 122, 0.55);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    margin-top: 0.75em;
}

.product {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1em;
    box-shadow: var(--shadow);
}

.product-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
}

.product-media {
    height: 120px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff, #ffe6f1);
    margin-bottom: 0.85em;
}

.product-media span {
    font-weight: 800;
    color: var(--brand-2);
    letter-spacing: 0.04em;
}

.product h4 {
    margin-bottom: 0.2em;
    color: var(--brand-2);
}

.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
    margin-top: 0.75em;
}

.price {
    font-weight: 900;
    color: var(--brand-2);
}

/* About */
.about {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1.25em;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    margin-top: 1em;
}

.about-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1em;
    background: #fff;
}

.bullets { margin-left: 1.1em; }

.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75em;
    margin-top: 0.75em;
}

.brand-tile {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5em 1em;
    text-align: center;
    background: linear-gradient(135deg, #fff, #fff1f8);
    box-shadow: var(--shadow);
    font-weight: 900;
    color: var(--brand-2);
}

/* Cart */
.cart-table {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.cart-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 0.75em;
    padding: 0.85em 0.9em;
    align-items: center;
    border-top: 1px solid var(--border);
}

.cart-head {
    border-top: none;
    background: rgba(178, 76, 122, 0.08);
    font-weight: 900;
    color: var(--brand-2);
}

.qty {
    display: inline-flex;
    gap: 0.5em;
    align-items: center;
}

.qty-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    width: 2.2em;
    height: 2.2em;
    cursor: pointer;
    font-weight: 900;
}

.totals {
    margin-top: 1em;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1em;
    max-width: 520px;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    padding: 0.35em 0;
    color: var(--muted);
}

.totals-total {
    color: var(--brand-2);
    font-weight: 900;
    border-top: 1px solid var(--border);
    margin-top: 0.35em;
    padding-top: 0.55em;
}

.cart-actions {
    display: flex;
    gap: 0.75em;
    flex-wrap: wrap;
    margin-top: 1em;
}

.empty {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1.2em;
}

/* Lessons Page */
#piano, #guitar, #violin {
    margin: 1em 0;
}

#info {
    clear: left;
    background-color: rgba(178, 76, 122, 0.08);
    padding: 1% 2%;
}

#info ul {
    margin-left: 10%;
}

.round {
    border-radius: 8px;
}

/* ==================== Contact Page Styles ==================== */
#contact {
    text-align: center;
    padding: 2%;
}

#contact .email-link {
    color: #4645a8;
    text-decoration: none;
    font-weight: bold;
}

.map {
    border: 5px solid var(--brand-2);
    width: 95%;
    height: 50%;
    margin: 1em auto;
}

.tel-link {
    background-color: var(--brand-2);
    padding: 2%;
    margin: 1em auto;
    width: 80%;
    text-align: center;
    border-radius: 5px;
}

.tel-link a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    display: block;
}

/* ==================== Instructors Page Styles ==================== */
aside {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--brand-2);
    text-shadow: 3px 3px 10px rgba(92, 42, 58, 0.25);
    margin-bottom: 1em;
}

figure {
    position: relative;
    max-width: 275px;
    margin: 2% auto;
    border: 8px solid var(--brand-2);
    border-radius: 10px;
    overflow: hidden;
}

figcaption {
    position: absolute;
    bottom: 0;
    background: rgba(92, 42, 58, 0.82);
    color: #fff;
    width: 100%;
    padding: 5% 0;
    text-align: center;
    font-family: Verdana, Arial, sans-serif;
    font-size: 1.3em;
    font-weight: bold;
}

/* ==================== Rentals Page Styles ==================== */
#rentals {
    background-color: rgba(178, 76, 122, 0.08);
    padding: 2%;
    border-radius: 10px;
}

#rentals h2 {
    text-align: center;
    color: var(--brand-2);
    font-family: 'DM Serif Display', serif;
}

#rentals p {
    text-align: center;
    font-size: 1.1em;
}

#rentals ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

#rentals li {
    margin: 0.5em 0;
    font-weight: bold;
}

/* ==================== Footer Styles ==================== */
footer {
    text-align: center;
    font-size: 0.8em;
    clear: both;
    padding: 1.5em;
    background-color: var(--surface);
    color: var(--brand-2);
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--brand);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* =========================================================
   Media Query: Tablet Viewport
   ========================================================= */
@media screen and (min-width: 550px), print {
    /* Show tab-desk class, hide mobile */
    .tab-desk {
        display: inline;
    }
    .mobile {
        display: none;
    }

    /* Navigation */
    nav li {
        border-top: none;
        display: inline-block;
        font-size: 1.2em;
        border-right: 1px solid #e5e9fc;
    }

    nav li:last-child {
        border-right: none;
    }

    nav li a {
        padding: 0.5em 1em;
    }

    /* Contact Map */
    .map {
        width: 500px;
        height: 450px;
    }

    /* Grid for instructors (tablet) */
    .grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 20px;
        justify-items: center;
    }

    aside {
        grid-column: 1 / span 2;
    }

    /* Beauty store grids (tablet) */
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .toolbar {
        grid-template-columns: 2fr 1fr;
        align-items: end;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================================
   Media Query: Desktop Viewport
   ========================================================= */
@media screen and (min-width: 769px), print {
    header {
        padding: 2%;
    }

    nav li {
        padding: 0.5em 1.5em;
    }

    nav li a:hover {
        color: #fff;
        background-color: rgba(255,255,255,0.14);
    }

    #info ul {
        margin-left: 5%;
    }

    main h3 {
        font-size: 1.5em;
    }

    #piano, #guitar, #violin {
        width: 29%;
        float: left;
        margin: 0 2%;
    }

    /* Instructors grid (desktop) */
    .grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 25px;
        justify-items: center;
    }

    aside {
        grid-column: 1 / span 4;
    }

    figcaption {
        font-size: 1em;
    }

    figure {
        max-width: 250px;
    }

    /* Beauty store grids (desktop) */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================================
   Media Query: Print View
   ========================================================= */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }

    nav, footer {
        display: none;
    }

    header {
        color: #000;
    }
}
