/* ================================================
   The Snug — style.css
   Irish Pub | Hingham, MA
   ================================================ */

/* ---- Variables ---- */
:root {
    --green-deep:  #162b1f;
    --green-mid:   #1e3d2b;
    --green-rich:  #2a5238;
    --gold:        #c9a84c;
    --gold-light:  #e4c97a;
    --cream:       #f7f2e8;
    --cream-dark:  #ece5d4;
    --white:       #ffffff;
    --text-body:   #2e2a25;
    --text-mid:    #5a524a;
    --text-faint:  #b0a090;
    --text-on-dark:#e8e0d0;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; }

img { max-width: 100%; }

/* ---- Utility ---- */
.py-section { padding: 5.5rem 0; }

/* ---- Navbar ---- */
#mainNav {
    padding: 1.1rem 0;
    background: transparent;
    transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

#mainNav.scrolled {
    background: var(--green-deep);
    padding: 0.55rem 0;
    box-shadow: 0 3px 24px rgba(0,0,0,.35);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 0.02em;
}

.brand-leaf { color: var(--gold); margin-right: 0.35rem; }

.navbar-nav .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem !important;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover { color: var(--gold) !important; }

.navbar-toggler {
    border-color: rgba(255,255,255,.4);
    padding: 0.3rem 0.55rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--green-deep);
        border-radius: 6px;
        padding: 1rem;
        margin-top: 0.6rem;
    }
}

/* ---- Hero ---- */
#hero {
    min-height: 100vh;
    background: url('img/interior1.jpg') center 40% / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(12,24,16,.52) 0%,
        rgba(12,24,16,.70) 100%);
}

.hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 1.5rem;
}

.hero-content { max-width: 720px; color: #fff; }

.hero-eyebrow {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.8rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.38);
}

.hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.82);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 0;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.btn-gold {
    background: var(--gold);
    color: #1a1400;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 0.8rem 2.2rem;
    border-radius: 3px;
    transition: background .2s, transform .2s;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: #1a1400;
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.65);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 0.8rem 2.2rem;
    border-radius: 3px;
    transition: border-color .2s, color .2s;
    text-decoration: none;
}

.btn-outline-gold:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-dark-green {
    background: var(--green-deep);
    color: var(--gold-light);
    border: 2px solid var(--green-rich);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, color .2s;
}

.btn-dark-green:hover {
    background: var(--green-rich);
    color: #fff;
}

/* ---- Info Bar ---- */
.info-bar {
    background: var(--green-deep);
    padding: 0.85rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-on-dark);
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    border-right: 1px solid rgba(255,255,255,.1);
}

.info-item:last-child { border-right: none; }

.info-item i { color: var(--gold); font-size: 0.95rem; }

.info-item a { color: var(--text-on-dark); text-decoration: none; }
.info-item a:hover { color: var(--gold); }

@media (max-width: 767px) {
    .info-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
    .info-item:last-child { border-bottom: none; }
}

/* ---- Section helpers ---- */
.section-cream  { background: var(--cream); }
.section-dark   { background: var(--green-deep); }
.section-white  { background: var(--white); }

.eyebrow-green, .eyebrow-gold {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.eyebrow-green { color: var(--green-rich); }
.eyebrow-gold  { color: var(--gold); }

.section-heading {
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

.section-heading-light {
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.8rem;
}

.subhead-dark  { color: var(--text-mid); font-size: 1.05rem; }
.subhead-muted { color: var(--text-faint); font-size: 1rem; }

/* ---- About ---- */
.about-img-wrap { position: relative; display: inline-block; width: 100%; }

.about-img-wrap img { position: relative; z-index: 1; }

.about-img-accent {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 60%;
    height: 60%;
    background: var(--gold);
    opacity: 0.15;
    border-radius: 4px;
    z-index: 0;
}

.section-about p { color: var(--text-mid); }
.section-about strong { color: var(--text-body); }

.awards-row { display: flex; flex-direction: column; gap: 0.55rem; }

.award-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green-deep);
    color: var(--gold-light);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.45rem 1.1rem;
    border-radius: 4px;
    width: fit-content;
}

.leaf { color: #4db871; }

/* ---- Menu ---- */
.menu-card {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    padding: 2rem;
}

.menu-card-featured {
    border-color: rgba(201,168,76,.45);
    background: rgba(201,168,76,.05);
}

.menu-cat {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--gold);
    border-bottom: 1px solid rgba(201,168,76,.3);
    padding-bottom: 0.65rem;
    margin-bottom: 1.1rem;
    font-weight: 700;
}

.cat-note {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-faint);
    margin-left: 0.5rem;
}

.menu-row {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.menu-row:last-of-type { border-bottom: none; }

.menu-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.mname {
    color: #f0ebe0;
    font-weight: 700;
    font-size: 0.93rem;
    line-height: 1.4;
}

.mname.specialty { color: #a8d5a2; }

.mprice {
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.mdesc {
    color: var(--text-faint);
    font-size: 0.8rem;
    margin: 0.1rem 0 0;
    line-height: 1.5;
}

.menu-note {
    color: var(--text-faint);
    font-size: 0.77rem;
    font-style: italic;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,.09);
}

.specialty-note {
    color: var(--text-faint);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ---- Events ---- */
.event-card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 32px rgba(22,43,31,.08);
    border-top: 4px solid var(--green-deep);
    transition: transform .25s, box-shadow .25s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 44px rgba(22,43,31,.14);
}

.event-day {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--green-rich);
    margin-bottom: 0.15rem;
}

.event-time {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.55rem;
}

.event-card h4 {
    font-size: 1.15rem;
    color: var(--green-deep);
    margin-bottom: 0.65rem;
}

.event-card p { color: var(--text-mid); font-size: 0.9rem; margin-bottom: 0; }
.event-card a { color: var(--green-rich); font-weight: 700; }

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
}

.gallery-cell { overflow: hidden; }

.gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.gallery-cell:hover img { transform: scale(1.07); }

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 200px);
    }
}

/* ---- Location ---- */
.location-panel {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 0;
}

.loc-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.loc-icon {
    width: 38px;
    height: 38px;
    background: var(--green-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loc-icon i {
    color: var(--gold);
    font-size: 0.9rem;
}

.loc-block h5 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green-rich);
    margin-bottom: 0.2rem;
}

.loc-block p {
    color: var(--text-mid);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.loc-block a { color: var(--green-deep); font-weight: 700; text-decoration: none; }
.loc-block a:hover { color: var(--green-rich); }

.social-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }

.social-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--green-deep);
    color: #fff !important;
    text-decoration: none !important;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background .2s;
}

.social-chip:hover { background: var(--green-rich); }

.map-wrap {
    border-radius: 8px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 4px 32px rgba(0,0,0,.12);
}

.map-wrap iframe {
    display: block;
    min-height: 420px;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--green-deep);
    padding: 3.5rem 0 1.5rem;
    color: var(--text-on-dark);
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 0.15rem;
}

.footer-tag {
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-faint);
    margin-bottom: 0.15rem;
}

.footer-addr { font-size: 0.8rem; color: var(--text-faint); }

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.footer-socials a {
    color: var(--text-faint);
    font-size: 1.35rem;
    text-decoration: none;
    transition: color .2s;
}

.footer-socials a:hover { color: var(--gold); }

.powered-by {
    display: inline-block;
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    border: 1px solid rgba(201,168,76,.5);
    border-radius: 4px;
    padding: 0.45rem 1.1rem;
    transition: background .2s, color .2s;
}

.powered-by:hover {
    background: var(--gold);
    color: #1a1400;
}

.footer-hr { border-color: rgba(255,255,255,.1); margin: 2rem 0 1rem; }

.footer-fine {
    font-size: 0.76rem;
    color: var(--text-faint);
    margin-bottom: 0.2rem;
}
