/*!
 * Modified from Start Bootstrap - Creative Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

html,
body {
    width: 100%;
    height: 100%;
    font-size: 16px;
}

body {
    font-family: 'Libre Baskerville', serif;
    -webkit-tap-highlight-color: #222;
}

hr {
    max-width: 80px;
    border-color: #a85c66;
    border-width: 3px;
}

a {
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;
}

a:hover,
a:focus {
    color: #cf8f8d;
}

h1,
h2,
h3,
h5,
h6 {
    font-family: 'Libre Baskerville', serif;
}

h4 {
    line-height: 2;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}


.bg-secondary {
    background-color: #f0f0e4;
}

.bg-dark {
    color: #fff;
    background-color: #222;
}

section {
    padding: 50px 0;
}

.container-fluid {
    max-width: 1300px;
}

.navbar-default {
    border: none;
    font-family: 'Libre Baskerville', serif;
    background-color: #fff;
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;
    min-height: 85px;

}

.navbar-default .navbar-nav > li > a {
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 15px;
    letter-spacing: .8px;
}

.navbar-default .navbar-brand {
    padding-top: 10px;
    padding-bottom: 10px;
    height: 85px;
}

.navbar-default .navbar-brand .navbar-monogram {
    height: 100%;
    max-height: 58px;
    width: auto;
    vertical-align: middle;
}

/* Desktop shows a centered monogram flanked by two link groups (see the
   >=768px block below); this copy stays hidden until that layout swaps in. */
.navbar-default .brand-desktop {
    display: none;
}

.navbar-default .navbar-header .navbar-brand {
    text-transform: uppercase;
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    color: #f05f40;
}

.navbar-default .navbar-header .navbar-brand:hover,
.navbar-default .navbar-header .navbar-brand:focus {
    color: #cf8f8d
}

.navbar-default .nav > li>a,
.navbar-default .nav>li>a:focus {
    text-transform: uppercase;
    font-weight: 700;
    color: #a0af6c;
}

.navbar-default .nav > li>a:hover,
.navbar-default .nav>li>a:focus:hover {
    color: #cf8f8d
}

.navbar-default .nav > li.active>a,
.navbar-default .nav>li.active>a:focus {
    color: #cf8f8d!important;
    background-color: transparent;
}

.navbar-default .nav > li.active>a:hover,
.navbar-default .nav>li.active>a:focus:hover {
    background-color: transparent;
}

@media(min-width:768px) {
    .navbar-default {
        background-color: transparent;
        backdrop-filter: blur(3px);
        /* Scales between a compact 80px bar right at the 768px breakpoint
           (where the desktop nav layout first replaces the hamburger menu)
           and a roomy 112px bar on wide screens, instead of a fixed height
           that's oversized for the content at the low end of this range. */
        min-height: clamp(80px, 12vw, 112px);
    }

    .navbar-default .navbar-header .navbar-brand {
        color: rgba(28,56,81,.7);
    }

    .navbar-default .navbar-header .navbar-brand:hover,
    .navbar-default .navbar-header .navbar-brand:focus {
        color: #fff;
    }

    .navbar-default .nav > li>a,
    .navbar-default .nav>li>a:focus {
        color: rgba(79,101,44,.7);
    }

    .navbar-default .nav > li>a:hover,
    .navbar-default .nav>li>a:focus:hover {
        color: #cf8f8d;
    }

    .navbar-default.affix {
        background-color: #fff;
    }

    .navbar-default.affix .navbar-header .navbar-brand {
        font-size: 14px;
        color: #cf8f8d;
    }

    .navbar-default.affix .navbar-header .navbar-brand:hover,
    .navbar-default.affix .navbar-header .navbar-brand:focus {
        color: #cf8f8d;
    }

    .navbar-default.affix .nav > li>a{
        color: #a0af6c;
    }

    .navbar-default.affix .nav > li>a:hover,
    .navbar-default.affix .nav>li>a:focus:hover {
        color: #cf8f8d;
    }

    #mainNav .navbar-header {
        display: none;
    }

    #mainNav .navbar-collapse {
        display: flex !important;
        align-items: center;
        height: clamp(80px, 12vw, 112px);
    }

    .navbar-default .brand-desktop {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        margin: 0;
    }

    .navbar-default .brand-desktop .navbar-monogram {
        /* Shrinks along with the rest of the nav at the low end of the
           768px+ range so it doesn't force extra width the links don't have. */
        max-height: clamp(48px, 6vw, 72px);
    }

    .navbar-default .nav-cluster {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
    }

    /* Just breathing room next to the monogram now - the monogram is a real
       flex sibling (flex: 0 0 auto above) that already claims its own width
       out of the row, so this only needs a small gap, not a large reserved
       zone like it did when the monogram floated on top via
       position: absolute and this padding was the only thing keeping the
       clusters clear of it. */
    .navbar-default .nav-cluster-left {
        justify-content: flex-end;
        padding-right: clamp(16px, 3vw, 40px);
    }

    .navbar-default .nav-cluster-right {
        justify-content: flex-start;
        padding-left: clamp(16px, 3vw, 40px);
    }

    .navbar-default .navbar-nav > li > a {
        font-size: clamp(12px, 1.4vw, 16px);
        letter-spacing: clamp(0.3px, 0.15vw, 1.2px);
        padding: 12px clamp(6px, 1vw, 16px);
    }
}

header {
    position: relative;
    width: 100%;
    min-height: auto;
    text-align: center;
    color: rgb(28,56,81);
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

#main-header {
    background-image: url('../images/posing_at_bridge.jpeg');
    /* Same drop shadow as the Our Story photo (.our-story-photo img), so the
       two photos on the page read as a matching pair. */
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .25);
}

header .header-content {
    position: relative;
    width: 100%;
    padding: 100px 15px;
    text-align: center;
}

header .header-content .header-content-inner h1 {
    margin-top: 0;
    margin-bottom: 0;
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
}

header .header-content .header-content-inner hr {
    margin: 30px auto;
}

header .header-content .header-content-inner p {
    margin-bottom: 50px;
    font-size: 22px;
    font-weight: 400;
    color: rgba(255,255,255);
}

@media(min-width:768px) {
    header {
        min-height: 70%;
    }

    header .header-content {
        position: absolute;
        top: 15%;
        padding: 0 50px;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }

    header .header-content .header-content-inner {
        margin-right: auto;
        margin-left: auto;
        max-width: 1000px;
    }

    header .header-content .header-content-inner p {
        margin-right: auto;
        margin-left: auto;
        max-width: 80%;
        font-size: 18px;
    }
}

.section-heading {
    color: #a0af6c;
}

.libre-baskerville-400 {
  font-family: "Libre Baskerville", serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
}

.great-vibes-regular {
  font-family: "Great Vibes", cursive;
  font-weight: 800;
  font-style: normal;
}


.our-story-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.our-story-title {
    flex: 0 0 auto;
    align-self: stretch;
    width: 220px;
    display: flex;
    flex-direction: column;
    text-align: right;
}

/* Pushes the heading's top edge to roughly a third of the way down the row:
   flexbox splits the leftover space (row height minus the heading's own
   height) between these two spacers in a 1:2 ratio, so it stays proportional
   as the row's height changes with the story text. */
.our-story-title::before {
    content: '';
    flex: 1 1 0;
}

.our-story-title::after {
    content: '';
    flex: 2 1 0;
}

.our-story-title .section-heading {
    margin: 0;
    font-size: clamp(40px, 6vw, 64px);
}

.our-story-divider {
    flex: 0 0 auto;
    align-self: stretch;
    width: 2px;
    background-color: #a85c66;
}

.our-story-text {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}

.our-story-photo {
    max-width: 1000px;
    margin: 40px auto 0;
}

.our-story-photo img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .25);
}

@media (max-width: 767px) {
    .our-story-row {
        flex-direction: column;
        gap: 0;
    }

    .our-story-title {
        width: auto;
        display: block;
        text-align: center;
    }

    .our-story-title::before,
    .our-story-title::after {
        content: none;
    }

    .our-story-divider {
        display: none;
    }

    .our-story-text {
        text-align: center;
        margin-top: 20px;
    }
}

/* Countdown: a small strip right after the hero photo, months/days/hours/
   minutes until the ceremony, with a cursive tagline and mini dot
   separators between the numbers instead of a full section heading/divider. */
#countdown {
    padding: 25px 0;
}

.countdown-intro {
    margin: 0 0 8px;
    font-size: 20px;
    color: #a85c66;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 6px;
    max-width: 420px;
    margin: 0 auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
}

.countdown-value {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    line-height: 1;
    color: #4f652c;
}

.countdown-label {
    margin-top: 3px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3a2a20;
}

.countdown-sep {
    align-self: center;
    margin-top: -4px;
    font-size: clamp(22px, 2.2vw, 22px);
    color: #a85c66;
    line-height: 2;
}

@media (max-width: 480px) {
    .countdown {
        gap: 8px 8px;
    }

    .countdown-sep {
        display: none;
    }
}

/* Program: a plain date label on the left and the event(s) for that date on
   the right - serif title, small colored time badge next to it, muted
   description below. No borders/boxes, just type and spacing. */
.program-list {
    max-width: 900px;
    margin: 30px auto 0;
    text-align: left;
}

.program-group {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.program-group + .program-group {
    margin-top: 50px;
}

.program-date {
    flex: 0 0 190px;
    padding-top: 6px;
    font-family: 'Libre Baskerville', serif;
    font-size: 18px;
    color: #a85c66;
}

.program-items {
    flex: 1 1 0;
    min-width: 0;
}

.program-item + .program-item {
    margin-top: 30px;
}

.program-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
}

.program-item-title {
    margin: 0;
    font-family: 'Libre Baskerville', serif;
    font-size: 28px;
    font-weight: 400;
    color: #3a2a20;
}

.program-item-time {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #4f652c;
    white-space: nowrap;
}

.program-item-desc {
    margin: 10px 0 0;
    color: rgba(58, 42, 32, .75);
    font-size: 15px;
    line-height: 1.6;
}

.program-item-note {
    margin: 14px 0 0;
    padding: 14px 18px;
    background: rgba(58, 42, 32, .05);
    border-left: 3px solid #a85c66;
}

.program-item-note-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #4f652c;
}

.program-item-note a {
    color: #4f652c;
    text-decoration: none;
}

.program-item-note a:hover,
.program-item-note a:focus {
    color: #a85c66;
    text-decoration: underline;
}

.program-item-note p {
    margin: 8px 0 0;
    color: rgba(58, 42, 32, .75);
    font-size: 14px;
    line-height: 1.6;
}

.program-item-note-photo {
    display: block;
    margin-top: 12px;
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(58, 42, 32, .2);
}

@media (max-width: 767px) {
    .program-group {
        flex-direction: column;
        gap: 8px;
    }

    .program-date {
        flex: none;
        padding-top: 0;
    }
}

/* Hotels: one highlighted "official hotel" card plus a row of plain cards
   for the nearby alternatives, all in the same bordered-card language as
   the RSVP/Gifts option cards. */
.hotel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.hotel-list-subheading {
    flex: 1 1 100%;
    margin: 10px 0 0;
    color: #3a2a20;
    font-family: 'Libre Baskerville', serif;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 14px;
}

.hotel-card {
    flex: 1 1 260px;
    padding: 20px 24px;
    border: 1px solid #3a2a20;
    box-sizing: border-box;
}

.hotel-card h4 {
    margin: 0 0 8px;
    font-family: 'Libre Baskerville', serif;
    color: #3a2a20;
}

.hotel-card h4 a {
    color: #3a2a20;
    text-decoration: none;
}

.hotel-card h4 a:hover,
.hotel-card h4 a:focus {
    text-decoration: underline;
    color: #a85c66;
}

.hotel-card p {
    margin: 0;
    font-size: 15px;
}

.hotel-card p + p {
    margin-top: 8px;
}

.hotel-card-featured {
    flex: 1 1 100%;
    border-color: #4f652c;
    background-color: rgba(79, 101, 44, .06);
}

.hotel-card-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    background-color: #4f652c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.hotel-card-code strong {
    color: #4f652c;
}


.rsvp-form {
    max-width: 640px;
    margin: 40px auto 0;
    text-align: left;
}

.rsvp-form .form-group {
    margin-bottom: 25px;
}

.rsvp-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Libre Baskerville', serif;
    color: #3a2a20;
}

.rsvp-label .required-mark {
    margin-left: 2px;
    color: #a85c66;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="tel"],
.rsvp-form .form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #3a2a20;
    border-radius: 0;
    background-color: #fff;
    box-shadow: none;
    font-family: 'Libre Baskerville', serif;
}

.rsvp-form input:focus {
    outline: none;
    border-color: #4f652c;
    box-shadow: none;
}

/* First/Last name side by side, wrapping to stacked on narrow screens */
.rsvp-fields-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.rsvp-fields-row .form-group {
    flex: 1 1 200px;
}

/* "Option card" rows shared by the Attending and Number of Guests
   questions: each choice is its own bordered box instead of a plain
   radio, matching the reference design. */
.rsvp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rsvp-option {
    display: flex;
    flex: 1 1 160px;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid #3a2a20;
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.rsvp-option input {
    margin: 0;
    accent-color: #4f652c;
}

.rsvp-option:has(input:checked) {
    border-color: #4f652c;
    background-color: rgba(79, 101, 44, .08);
}

#guest-count-group.text-muted .rsvp-option {
    opacity: .45;
    cursor: not-allowed;
}

/* Gifts section: three flag "option cards" (reusing .rsvp-options/.rsvp-option
   as-is, same bordered style as the RSVP form) that each reveal one bank
   account's details. No JS - :has() on the shared .gift-picker wrapper
   toggles the matching panel based on which radio is checked. */
.gift-picker {
    max-width: 640px;
    margin: 30px auto 0;
    text-align: left;
}

.gift-flag-row {
    justify-content: center;
}

.gift-flag-row .rsvp-option {
    flex: 0 1 180px;
    justify-content: center;
    font-size: 18px;
}

.gift-account-details {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #3a2a20;
}

.gift-picker:has(input[value="0"]:checked) [data-account-panel="0"],
.gift-picker:has(input[value="1"]:checked) [data-account-panel="1"],
.gift-picker:has(input[value="2"]:checked) [data-account-panel="2"] {
    display: block;
}

.gift-account-details h4 {
    margin-top: 0;
    font-family: 'Libre Baskerville', serif;
    color: #a0af6c;
}

.gift-account-details dl {
    margin: 0;
}

.gift-account-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(58, 42, 32, .15);
}

.gift-account-row:last-child {
    border-bottom: none;
}

.gift-account-row dt {
    font-weight: 700;
    color: #3a2a20;
}

.gift-account-row dd {
    margin: 0;
    text-align: right;
    color: #3a2a20;
}

.rsvp-form .help-block {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #a85c66;
}

.btn {
    display: inline-block;
    border: 1px solid #3a2a20;
    padding: 12px 30px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .8px;
    cursor: pointer;
    border-radius: 0px;
}

.btn-primary {
    color: #fff;
    background-color: #4f652c;
    
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: #3d4f22;
}

#footer {
    background-color: #222;
    padding-bottom: 30px;
}
