/*
  styles.css — Main stylesheet for Baniya Stores
  Uses CSS variables, Flexbox, and Grid. Responsive at 768px and 480px.
*/

:root {
    --color-ivory: #E7E6E2;
    --color-gold: #CEBD38;
    --color-warm-gold: #B98138;
    --color-brown: #724B27;
    --color-dark: #403E2D;
    --max-width: 1100px;
    --radius: 8px;
}

/* Global reset and typography */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--color-dark);
    background: linear-gradient(180deg, var(--color-ivory) 0%, #fff 100%);
    line-height: 1.5;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem
}

/* Header and navigation */
.site-header {
    background: #d4d4d3;
    padding: .75rem 0;
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-brown)
}

.logo-img {
    height: auto;
    display: block;
    max-height: 90px;
    width: auto
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.main-nav {
    display: flex;
    gap: 1rem
}

.nav-link {
    color: var(--color-dark);
    text-decoration: none;
    padding: .4rem .6rem;
    border-radius: 4px;
    transition: all .25s
}

.nav-link:hover {
    background: var(--color-ivory);
    color: var(--color-brown);
    transform: translateY(-2px)
}

.nav-link.active {
    background: var(--color-gold);
    color: #fff
}

/* Hero */
.hero {
    padding: 0;
    margin-bottom: 0
}

.hero.small-hero {
    padding: 0;
    margin-bottom: 0
}

.hero-bg {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 1
}

/* Hero content section placed below the hero image to avoid covering native image text */
.hero-content {
    padding: 2rem 0;
    text-align: center
}

.hero-content .lead {
    margin-bottom: 1rem
}

.hero h1 {
    font-family: 'Palatino Linotype', 'Book Antiqua', serif;
    font-size: 2.25rem;
    margin: 0 0 .5rem
}

.lead {
    font-size: 1.1rem;
    color: var(--color-brown);
    margin-bottom: 1rem
}

.btn {
    display: inline-block;
    padding: .65rem 1rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer
}

.primary-cta {
    background: var(--color-warm-gold);
    color: #fff;
    border-color: var(--color-warm-gold)
}

.primary-cta:hover {
    background: var(--color-gold)
}

/* Grids and galleries */
.gown-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center
}

.gown-grid figure {
    flex: 1 1 20%;
    min-width: 100px;
    background: #fff;
    padding: .5rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06)
}

.gown-grid img {
    width: 250px;
    height: 300px;
    border-radius: 4px;
    object-fit: cover
}

.figcaption {
    font-size: .9rem
}

.services-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap
}

.services-grid article {
    flex: 1 1 30%;
    background: var(--color-ivory);
    padding: 1rem;
    border-radius: 6px
}

.testimonials blockquote {
    background: #fff;
    padding: 1rem;
    border-left: 4px solid var(--color-gold);
    margin: 1rem 0
}

.testimonials cite {
    display: block;
    margin-top: .5rem;
    color: var(--color-brown);
    font-style: normal
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
}

.grid-gallery figure {
    background: #fff;
    padding: .4rem;
    border-radius: 6px
}

.grid-gallery img {
    width: 250px;
    height: 300px;
    object-fit: cover
}

/* Collection grid images use same standard size */
.collection-grid img {
    width: 225px;
    height: 300px;
    object-fit: cover
}

.logo-img {
    max-height: 56px
}

.promo .embed-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(64, 62, 45, 0.08);
    margin-bottom: .5rem
}

.promo .embed-wrap iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0
}

.promo .caption {
    font-size: .95rem;
    color: var(--color-brown)
}

/* Collections page specific */
.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin: 1rem 0
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem
}

.table-wrap {
    overflow: auto
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff
}

table th,
table td {
    padding: .75rem;
    border: 1px solid #eee;
    text-align: left
}

table caption {
    caption-side: top;
    padding: .5rem 0;
    font-weight: 600
}

.consultation {
    margin-top: 2rem;
}

.consultation ol {
    padding-left: 1.25rem
}

.benefits ul {
    padding-left: 1.25rem
}

/* Contact form */
.contact-page .two-col-form {
    display: flex;
    gap: 1rem
}

.field {
    margin: .5rem 0
}

.field label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .5rem;
    border: 1px solid #ddd;
    border-radius: 6px
}

.contact-preference {
    border: 1px solid #eee;
    padding: .75rem;
    border-radius: 6px;
    margin: .5rem 0
}

.checkbox input {
    margin-right: .5rem
}

.form-actions {
    display: flex;
    gap: .75rem;
    margin-top: .75rem
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: var(--color-ivory);
    padding: 1rem 0;
    margin-top: 2rem
}

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

.footer-contact a {
    color: var(--color-ivory)
}

/* Responsive rules */
@media (max-width:768px) {
    .two-column {
        grid-template-columns: 1fr
    }

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

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

    .gown-grid {
        flex-direction: row
    }

    .header-inner {
        flex-direction: column;
        gap: .5rem
    }
}

@media (max-width:480px) {
    .hero h1 {
        font-size: 1.5rem
    }

    .collection-grid {
        grid-template-columns: 1fr
    }

    .grid-gallery {
        grid-template-columns: 1fr
    }

    .gown-grid figure {
        flex: 1 1 100%
    }

    .main-nav {
        flex-direction: column;
        align-items: center
    }

    .header-inner {
        padding: .5rem
    }
}

/* Small utility adjustments */
.hero-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0
}

.hero-row .hero-content {
    flex: 1;
    padding: 0
}

.hero-row .hero-img {
    flex: 1;
    display: flex;
    justify-content: center
}

.hero-row .hero-img img {
    width: 100%;
    height: auto;
    max-width: 620px;
    max-height: 360px;
    border-radius: 8px;
    object-fit: cover
}

@media (max-width:768px) {
    .hero-row {
        flex-direction: column
    }

    .hero-row .hero-img img {
        max-width: 100%;
        max-height: 320px
    }
}

.container h1,
.container h2,
.container h3 {
    color: var(--color-brown)
}