/* General Body Styling */

/* Overall Page Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    background:#f7f8f3;
    background-size: cover;
}

html {
    overflow-y: scroll;  /* Always reserve scrollbar space */
    overflow-x: hidden; 
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    width: 100%; /* Ensure width is 100% */
    min-height: calc(var(--vh, 1vh) * 100);
    
}



@font-face {
    font-family: 'shrikhand';
    src: url('../fonts/shrikhand.regular.eot');
    src: url('../fonts/shrikhand.regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/shrikhand.regular.ttf') format('opentype');
}


@font-face {
    font-family: 'marcellus';
    src: url('../fonts/marcellus.regular.eot');
    src: url('../fonts/marcellus.regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/marcellus.regular.ttf') format('opentype');
}




/* Header Styles */
header{
    font-family: 'shrikhand', sans-serif;
    font-size: 24px;
    font-weight: normal;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%; /* Ensure width is 100% */
    margin-bottom: 0;
    padding: 40px 40px 10px 40px; /* top right bottom left */
}

.header-default {
    background:#f7f8f3;
}


.header-title {
    font-weight: normal;
    flex-grow: 1; /* Make sure the title takes available space */
    text-align: center; /* Center the title */
   
}


/* Category Menu - Desktop */
/* Dropdown content - Adjust Z-Index */
#category-menu .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 10px);  /* Add space below the menu item */
    left: 0;
    min-width: 180px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 200;  /* Ensure it is above the header */
}


/* Modify Header's Z-Index if necessary */
header {
    z-index: 100; /* Ensure the header is below the dropdown */
}

/* Hide scrollbar in WebKit browsers */
#category-menu::-webkit-scrollbar {
    display: none;
}

/* Category Links */
#category-menu a {
    font-family: Arial, sans-serif;
    text-decoration: none;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    font-weight: bold;
    color: #333; /* Default text color */
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
}

/* Hover and Active states */
#category-menu a:hover {
    background: #dcdcdc; /* A darker grey */
    color: #000;  /* Black text on hover */
}
#category-menu a.active {
    background: #dcdcdc; /* A darker grey */
    color: #000;  /* Black text on selected item */
}

/* Container for each category with dropdown */
#category-menu .category-item {
    position: relative; /* Ensure parent is relative */
    display: inline-block;
}

/* Dropdown content */
#category-menu .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #f7f8f3; /* Match body background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Subcategory link styling */
#category-menu .dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: #333;
    background: transparent; /* Inherits the dropdown background */
    text-align: left;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover effect for links */
#category-menu .dropdown-content a:hover,
#category-menu .dropdown-content a.active {
    background: #dcdcdc;
    color: #000;
    border-left: 3px solid #333;
}

/* Show dropdown on hover */
#category-menu .dropdown:hover .dropdown-content {
    display: block;
}

/* Optional: maintain background color when hovering over full dropdown */
#category-menu .dropdown-content:hover {
    background: #f7f8f3;
}


/* Input Fields */
.footer-content input,
.footer-content textarea {
    width: 100%;
    padding: 12px;
    resize: none;
    border: 1px solid #ccc;
   
    border-radius: 10px; /* Rounded input fields */
    font-size: 16px;
}


/* Increase space after "Message" field */
#message {
    margin-bottom: 15px;
}


.alert {
    padding: 15px;
    margin: 10px 0;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bespoke-process-form .footer-content {
    background-color: transparent; /* Form-specific color */
}

/* Bespoke Process Form (similar to Contact Form) */
.bespoke-process-form form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased space between fields (labels, inputs, and button) */
    width: 100%;
    max-width: 400px;
    background-color: transparent;
    margin: 0 auto; /* Centers the form horizontally */
    padding: 20px; /* Adds padding around the form */
}

/* Button Styling */
.bespoke-process-form button {
    background-color: #df9db0; /* Button color */
    color: #000;
    font-size: 16px;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: auto;
    display: block;
    text-align: center;
    margin: 0 auto; /* Centers the button */
    white-space: nowrap;
    margin-bottom: 0px; /* Ensure no margin below the button */
}

/* Hover effect on button */
.bespoke-process-form button:hover {
    background-color: #df9db0; /* Darker button color */
}

/* Success/Error Message Style */
#bespoke-alert-message {
    padding: 10px; /* Increased padding for better visibility */
    margin: 0px; /* Ensure no margin around the message */
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    display: none; /* Start with hidden */
}

/* Reset margin and padding for all child elements */
.bespoke-process-form * {
    margin: 0;
    padding: 0;
    padding-top: 2px;
}
.bespoke-process-form h2 {
    margin-top: 0; /* Remove the default top margin */
    margin-bottom: 10px; /* Add more space below the heading */
}

/* Remove extra space between button and message */
.bespoke-process-form button + #bespoke-alert-message {
    margin-top: 0; /* Remove margin between the button and the message */
}

.logo {
    position: absolute;
    right: 40px; /* Add some space from the right edge */
    top: 50%;
    transform: translateY(-50%);
    height: auto;  /* Maintain aspect ratio */
    width: auto;
}


/* Menu Icon (for Mobile & Tablet) */
.menu-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    margin-right: 0; 
    display: block;
}

/* Drawer (Mobile & Tablet) */
.drawer {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh; /* not 100% */
    background: linear-gradient(to bottom right, rgba(250, 235, 215, 0.6), rgba(250, 235, 215, 0.8));
    backdrop-filter: blur(5px); /* Matches body */
    -webkit-backdrop-filter: blur(5px); /* For Safari */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    padding-top: 60px;
    transition: 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.drawer.open {
    left: 0;
}

.drawer a.heading-link {
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
    font-weight: bold;
}

.drawer a.contact-btn {
    font-weight: bold;
}

/* Overlay to Close Drawer When Clicking Outside */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#overlay.active {
    display: block;
}

/* Drawer Links */
.drawer a {
    text-decoration: none;
    padding: 15px 20px;
    color: #000;
    font-size: 18px;
    transition: background 0.3s ease, color 0.3s ease;
    background: transparent;
}

.drawer a:hover,
.drawer a.active {
    background: #fff;
    color: #000;  /* Black text on selected item */
}


.accordion-header,
.accordion-header:focus,
.accordion-header:active,
.accordion-header:visited {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}


.accordion-item {
    border-bottom: 1px solid #ddd;
    padding: 0;
    margin-bottom: 5px;
}


.accordion-header {
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    background-color: transparent;
    color: #000;
    transition: background 0.3s ease, color 0.3s ease;
    text-align: center;
    justify-content: center;
}

.accordion-header:hover,
.accordion-header.active {
    border: none;          /* Removes any border */
    box-shadow: none;      /* Removes any glow or outline */
    background-color: #fff;
    color: #000;
}


.accordion-content {
    text-align: center;
    display: none;
    flex-direction: column;
    padding: 5px 15px 10px;
    background-color: transparent;
    animation: fadeIn 0.3s ease;
}

.accordion-content.show {
    display: flex;
}

.accordion-content a {
    padding: 8px 0;
    color: #333;
    font-size: 16px;
    border-left: 3px solid transparent;
    transition: border-color 0.3s, color 0.3s;
}

.accordion-content a:hover,
.accordion-content a.active {
    color: #000;
    font-weight: 600;
    border-left: 3px solid #333;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.accordion-header:focus {
    outline: none;
}

/* Close Button in Drawer */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    color: #333;
}


/* Template Grid - Responsive */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; /* 40px spacing both horizontally & vertically */
    padding: 40px;
    align-items: stretch; /* Ensures all cards match height */
    justify-items: center; /* Centers cards inside grid */
}

/* The entire box (button, arrow, icons) */
.social-box {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background-color: transparent;
    border: none;
    box-shadow:none;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column-reverse; 
}

/* When shown */
.social-box.show {
    display: flex;
    opacity: 1;

}


/* Icon images inside */
.icon-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: background 0.3s;
}

/* Enquire button (now inside box) */
.enquire-btn {
    position: static; /* Remove fixed positioning */
}

/* Arrow icon (now inside box) */
.arrow-icon {
    margin-top: -20px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    user-select: none;
    cursor: default;
    display: none;
}

/* Social icons layout */
.header-contact-social-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    
}


#contactDetails {
    transition: all 0.3s ease-in-out;
}


@media (max-width: 840px) {
    .drawer {
        padding-top: 80px;
    }

    .header-title {
        flex-grow: 0.6; /* Make sure the title takes available space */
        text-align: center; /* Center the title */
        font-weight: normal;
    }

    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }

    header {
        font-size: 26px;
        text-align: center;
        padding: 20px; /* Adjust padding as needed */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        display: flex;
        font-weight: bold;
        justify-content: flex-start;/* Space between items */
        align-items: center; /* Center items vertically */
        min-height: 60px;
        white-space: nowrap;
        overflow: hidden; /* Prevent overflow */
    }

    body {
        padding-top: 100px;
    }

    
    .logo {
        height: 120px; /* Adjust height for smaller screens */
        width: auto; /* Maintain aspect ratio */
        z-index: 2000; /* Ensure it appears above other elements */
        flex-shrink: 0; /* Prevent the logo from shrinking */
        margin-left: 25px; /* Add margin to the left of the logo */
        margin-right: -20px;
    }
    
    .menu-icon {
        top: 8px;
        left: 15px;
        transform: none;
        z-index: 1001;
        margin-top: 28px; /* move menu icon down */
        margin-right: 20px; /* Add margin to the right of the menu icon */
    }

    h1 {
        flex-grow: 0.4; /* Allow the heading to take up available space */
        text-align: center; /* Center the heading text */
        margin: 0; /* Remove default margin */
    }

    .bespoke-process-form h2 {
        margin-top: -30px; /* Reduce as needed */
        padding-top: 0;
     }


    .bespoke-process-form form {
        gap: 20px; /* Increased space between fields (labels, inputs, and button) */
        width: 100%;
        max-width: 300px;
    }

    #category-menu {
        display: none; /* Ensure the category menu is not shown */
    }
    .drawer {
        display: flex; /* Ensure the drawer is displayed */
    }
}

/* Medium Screens (Tablets or small laptops) - 3 Templates per Row */
@media (min-width: 801px) and (max-width: 1023px) {
    .template-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

  .arrow-icon {
        margin-top: -15px;
        width: 20px;
        height: 20px;
    }


    /* Social box wrapper */
    .social-box {
        display: inline-block;
        bottom: 10px;
        right: 5px; 
    }

    .icon-img {
        width: 35px;
        height: 35px;
    }



}


@media (min-width: 1024px) {
    .template-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}



/* Laptops & Desktops (Large Screens) - 4 Templates per Row */
@media (min-width: 840px) {

    body {
        padding-top: 250px;
    }
    .header-title {
        margin-top:45px;
        margin-bottom: 20px; /* space between title and category menu */
    }

    header {
        font-size: 50px;  /* Adjust font size */
        padding: 20px 20px;  /* Adjust padding for better fitting */
    }

    /* Show category menu on laptop, hide drawer */
    #category-menu {
        display: block;
    }
    .menu-icon,
    .drawer {
        display: none; /* Hide menu icon and drawer */
    }

    /* Move logo slightly upwards */
    .logo {
        top: 45%;
        max-height: 250px;  /* Set a max height to prevent it from becoming too large */
    }

      .social-box {
        display: inline-block;
    }

    .bespoke-process-form h2 {
        margin-top: -30px; /* Reduce as needed */
        padding-top: 0;
     }


}

/* Dynamic Template Card */
.template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 320px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
    background: linear-gradient(180deg, 
    rgba(0, 0, 0, 1) 0%,         /* Black with 80% opacity */
    rgba(75, 59, 0, 0.7) 40%,      /* Dark gold/olive with 70% opacity */
    rgba(200, 145, 22, 0.5) 100%   /* Gold with 60% opacity */
   );
}

/* Image Container (Flexible Height) */
.image-container {
    width: 100%;
    height: auto; /* Allows dynamic height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

/* Image (Scales Properly Without Cropping) */
.template-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;  /* Keeps the image proportional */
    border-radius: 8px;
    display: block;
}

/* Title & Price Container (Tightly Fits Content) */
.text-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 0; /* Keeps text compact */
    width: 100%;
}

/* Title (Adjusts to 1 or 2 lines) */
.template-card h2 {
    font-size: 18px;
    color: #222;  /* Make text white for contrast against the image */
    margin: 10px 0 5px 0;
    text-align: center;
    word-wrap: break-word;
    min-height: 24px; /* 1 line height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5); /* Optional: Adds shadow for better visibility */
}

/* Price (Stays Compact) */
.template-card p {
    font-size: 16px;
    font-weight: bold;
    color: #222;  /* Make text white for contrast */
    margin: 2px 0 0 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5); /* Optional: Adds shadow for better visibility */
}

/* Optional: Add hover effect for card */
.template-card:hover {
    transform: translateY(-5px);  /* Slight lift on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* More prominent shadow */
    transition: all 0.3s ease-in-out; /* Smooth transition */
}




