
/*-------- Cathy Collins --------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
    background: whitesmoke;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: arial;
    font-weight: 400;
    font-size: 16px;
    color: #0C243C;
    line-height: 150%;
}

html {
    overflow-y: scroll;
  } 

h1 {
    color: #E94D40;
    font-size: 36px;
}

/*-- CHANGE TO HOME PAGE HEADING FONT SIZE AS REQUESTED. CATHY COLLINS --*/
h1.home-page-heading {
    font-size: 38px;
}

h2 {
    color: #0C243C;
    font-size: 30px;
    
}

h3 {
    font-size: 24px;
    color: #E94D40;
    font-style: italic;
}

.bold {
    font-weight: 700;
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    background-color: whitesmoke;
}

body {
  font-family: Arial;
  line-height: 1.5;
  margin: 0;
  font-family: Arial;
}

header, 
.main-nav {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    
}

#header-logo {
    display: block;
    width: auto;
    margin: 0 14px;
    position: relative;
    z-index: 3;
    margin-bottom: -8px;
  }
  
  #header-logo img {
    display: block;
    height: auto;
    width: 100%;
    box-shadow: 0 12px 15px -6px rgba(0, 0, 0, 0.4);
  }

  .burntred {
    color: #E94D40;
}

.navyblue {
    color: #0C243C;
}

.specialcakesfont {
    font-family: Arial, sans-serif;
}

.floatleft {
    float: left;
}

.floatright {
    float: right;
}

.clearboth {
    clear: both;
}

  /*--------------HOME PAGE FORMATTING-------------------------------*/

.home-page {
    margin: 14px;
    padding: 32px;
    background-color: whitesmoke;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.home-page p {
    max-width: 1000px;
    margin-top: 16px;
    
}

.storefront-image {
    width: 80%;
    max-width: 700px;
    height: auto;
    margin: auto;
}

.home-page-text {
    text-align: center;
}





 

/*----------------------- MAIN NAVIGATION -------------------*/
.main-nav {
    font-size: 16px;
    margin-top: 0;
    position: relative;
    background-color: whitesmoke;
    box-shadow: none;
    z-index: 1;
    position: relative;
}

.main-nav ul {
  display: flex;
  list-style: none;
  background-color: transparent;
  justify-content: center;
  padding: 30px 0 10px 0;
  margin: 0;
  border: none;
}

.main-nav ul li {
  margin: 0 16px;
}

.main-nav ul li a {
    display: inline-block;
    padding: 8px 16px;
    background-color: whitesmoke;
    color: #0C243C;
    text-decoration: none;
    border-radius: 12px;
    
}

.main-nav ul li a:hover,
.main-nav ul li a.current {
    background-color: #DCDCDC;
    color: #E94D40;
}



.main-nav .nav-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
}

.content {
  display: flex;
  padding: 16px;
  gap: 32px;
}

/* Two-column layout */
.column {
  flex: 1;
  background: #f4f4f4;
  padding: 16px;
}

.left-column, .right-column {
    flex: 1;
    box-sizing: border-box;
    width: 100% !important;
    margin-bottom: 16px !important;
    padding: 16px !important; 
}

/*-- One box with two columns inside layout --*/

.columns-wrapper {
    background-color: whitesmoke;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    display: flex;
    gap: 24px; 
    padding: 24px;
    max-width: 1000px; 
    margin: auto; 
    overflow: hidden;
  }

  .columns-wrapper-cakes {
    background-color: whitesmoke;
    
    gap: 24px; 
    padding: 24px;
    max-width: 1000px; 
    margin: auto; 
    overflow: hidden;
  }

  .columns-wrapper-home-page {
    background-color: whitesmoke;
    display: flex;
    gap: 24px; 
    padding: 24px;
    max-width: 1000px; 
    margin: auto; 
    overflow: hidden;
  }

.testimonials {
    font-style: italic;
}

ul {
    padding-left: 20px;
}

/* formatting for images in blocks */
.images-block {
    display: flex;
    background-color: #f4f4f4;
    padding: 7px;
    gap: 7px;
}

.images-block .image-wrapper {
    flex: 1;
}

.images-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 0;
}



/*------------------- CAKES FOR SALE GALLERY PAGE IMAGES ---------------------------*/

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    justify-content: center;
    margin-bottom: 10px;
}

.image-box {
    position: relative;
    z-index: 0;
    width: 200px;
    
    border-radius: 10px;
    margin-bottom: 20px;
}

.image-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    border-radius: 10px;
}

.image-box:hover img {
    transform: scale(1.5);
    z-index: 10;
    top: 0;
    left: 0;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.image-box:hover {
   
    z-index: 2;  /* bring to front - on hover lifts that box above the others */
}

.cakes-page {
    margin: 14px;
    padding: 32px;
    background-color: whitesmoke;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cake-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

.cake-name {
    margin: 10px 0 4px;
    font-weight: bold;
    color: #0C243C;
    text-align: center;
}

.contact-cakes-page-button {
    max-width: 400px;
    align-items: center;
    text-align: center;
    margin: auto;
}

.cakes-section-heading {
    color: #E94D40;
}

.dietary {
    margin: 0;
    font-size: 0.8em;
    line-height: 1.3;
    color: #555;
    text-align: center;
}




/*--------------ABOUT PAGE FORMATTING-------------------------------*/

.about-page {
    margin: 14px;
    padding: 32px;
    background-color: whitesmoke;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.about-page p {
    max-width: 1000px;
    margin-top: 16px;
    
}

.owner-image {
    width: 80%;
    max-width: 700px;
    height: auto;
    margin: auto;
}

table {
  width: 100%;
  border-collapse: collapse; /* Merges individual cell borders into a single clean line */
}

th, td {
  border: 1px solid #dddddd; /* Adds a light grey border around all cells */
  text-align: left;          /* Aligns text to the left side */
  padding: 8px;              /* Creates comfortable space between text and borders */
}

th {
    background-color: #0C243C;
    color: white;
}

tr {
  background-color: #FCFCFC; /* Optional: Creates alternating light/dark row zebra stripes */
}



/*---------------- CONTACT US PAGE FORM FORMATTING -----------------*/

.contact-page {
    
    margin: 14px;
    padding: 32px;
    background-color: whitesmoke;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-radius: 12px;
}

.form-container {
    position: relative;
    border: 2px solid #0C243C;
    border-radius: 8px;
    padding: 40px 20px 30px 20px;
    margin: 30px auto 0;
    max-width: 760px;
    background-color: whitesmoke;
  }
  
  .form-title {
    position: absolute;
    top: -16px; /* adjust as needed */
    left: 20px;
    background-color: whitesmoke; /* match the page background */
    padding: 0 12px;
    font-size: 1.5em;
    font-weight: bold;
    color: #0C243C;
  }

.form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
}

.form-row label {
    max-width: 120px;
    margin-right: 10px;
}

.form-row input {
    flex: 1;
    padding: 8px;
}

.input-with-help {
    display: flex;
    flex-direction: column;
}

.input-with-help input {
    max-width: 200px;
    padding: 6px 8px;
}

.input-with-help small {
    margin-top: 4px;
    font-size: 0.85em;
    color: #0C243C;
    font-style: italic;
}




/*---- FORM BUTTONS ---*/
.submit {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    max-width: 100%;
}

.submit input {
    padding: 12px 24px;
    cursor: pointer;
    background-color: #C8C8C8;
    color: #0C243C;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0, 0.5);
}

.submit input:hover {
    transform: scale(1.05);
    background-color: #DCDCDC;
    color: #E94D40;
    text-decoration: none;
}

.img-shadow {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

/*--- CHANGE PLACEHOLDER TEXT IN FORM FROM BLUE ON MOBILE DEVICES TO MATCH CSS STYLING ---*/

select option.placeholder {
    color: #999999; /* light grey for placeholder */
  }
  
  select:not(:focus) option.placeholder {
    color: #999999; /* placeholder color when dropdown not focused */
  }
  
  select:focus option.placeholder {
    color: black; /* color changes when dropdown focused */
  }
  
/*--------------- THANK YOU PAGE ------------*/

.thank-you-bg {
    background-color: whitesmoke; 
    background-image: none;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.4);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 15px 14px 0;
    max-width: 1200px;
}

.hero-box-thanks {
    background: whitesmoke;
    padding: 24px 32px;
    
    max-width: 600px;
    width: 90%;
    text-align: center;
    z-index: 2;
}

.hero-box-thanks-link .hero-thanks-link {
    display: block;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.hero-box-thanks .hero-thanks-link:hover p {
    color: #4d1d18;
}
   
.thank-you-1 {
    font-size: 36px;
    font-weight: bold;
    color: #E94D40;
}

.thank-you-2 {
    font-size: 24px;
    font-weight: bold;
    color: #0C243C;
}

.return {
    color: #0C243C;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-box-thanks a:hover {
    color: #E94D40;
    font-weight: bold;
}

@media (min-width: 769px) {
    .form-row label {
        flex: 0 0 120px;
        max-width: 120px;
    }

    .form-row input,
    .form-row textarea {
        flex: 1;
    }
}

/*--------------------- RETURN TO HOME PAGE BUTTON ---------------*/
a.return-home-button {
    background-color: #C8C8C8;
    color: #0C243C;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0, 0.5);
    text-decoration: none;
    display: block;
}

.return-home-button:hover {
    color: #0C243C;
    background-color: #DCDCDC;
    transform: scale(1.05);
    text-decoration: none;
}

/*----- END OF FORM FORMATTING -----*/


/* ---------------FOOTER------------------------ */
footer {
  background: #0C243C;
  color: white;
  text-align: center;
  font-size: 14px;
  padding: 20px;
  margin: 20px 14px 0;
  
  
}










/*--------- Responsive for smaller screens ----------*/
@media (max-width: 1024px) {
    .content {
        flex-direction: column !important;
    }

    .columns-wrapper {
        flex-direction: column !important;
        padding: 16px !important;
        max-width: 100% !important; 
        width: 100% !important;
        box-sizing: border-box;
    }
  
    .left-column,
    .right-column {
        box-sizing: border-box;
        width: 100% !important;
        margin-bottom: 16px !important;
    }
  
    .main-nav ul,
    .footer-nav ul {
        flex-direction: column !important;
        align-items: center !important;
    }
  
    .main-nav ul li,
    .footer-nav ul li {
        margin: 0.8px 0 !important;
    }
    .columns-wrapper-home-page {
    flex-direction: column;
    padding: 16px;
    width: 100%;
}
  }

  

/*------ Hide header, nav, footer, and other non-print elements ---------*/

@media print {
    header,
    nav,
    footer,
    .main-nav,
    .social-icons,
    #header_logo,
    #footer_logo {
      display: none !important;
    }

    img {
        display: none !important;
    }
}