/*Global Style*/

/*Box Model*/
*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body{
    font-family: Arial, Helvetica, sans-serif,;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

/* Fonts */

/*Besley*/
@font-face{
    font-family: 'Besley';
    font-style: normal;
    font-weight: 400;
    src:local(''),
        url('/Besley/OpenType/Besley-Regular.otf');
}

@font-face{
    font-family: 'Besley-Bold';
    font-style: bold;
    font-weight: 400;
    src:local(''),
        url('/Besley/OpenType/Besley-Bold.otf');
}

h1, h2, h3 {
    font-family: 'Besley-Bold', 'sans-serif';
    text-decoration: underline 4px;
}

a, p, li{
    font-family: 'Besley', 'sans-serif';
    font-weight: 600;
}

a::before, a:active, a::after{
    color: inherit;
}



/*Text Scaling*/

h1{ font-size: 2rem;}
h2{ font-size: 1.75rem;}
h3{ font-size: 1.5rem;}
p, li, a{ font-size: 1rem;}


/*Text Responsivness*/

@media(max-width: 780px){
    html{font-size: 14px;}
}
@media(max-width: 480ppx){
    html{font-size:  13px;}
}

/* Fade-in */
.fade-in-section{
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible{
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
    .fade-in-section{
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.no-js .fade-in-section {
    opacity: 1;
    transform: none;
}

/*Navigation Bar*/

.navbar{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: white;
    padding: 0.5rem 8%;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 1.0rem;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    color: rgb(255, 145, 0);   
    box-shadow: 0px 0px 0px 1.5px rgba(0, 0, 0, 0.7); 
}



.nav-group{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.nav-left{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    
}

.nav-right{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

.nav-middle{
   display: flex;
   flex-wrap: wrap; 
   justify-content: center;
   gap: var(--spacing-sm);
}

/*For Tablet and up*/

@media(min-width: 768px){
    .navbar{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75 5%;
    }

}


.navlink, #nav-logo{
    color: rgb(255, 145, 0);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: bold;
}

@media(min-width: 480px){
    .navlink {font-size: 1rem;}
}

.navlink:hover{
    background-color: rgb(255, 145, 0);
    color: rgba(255, 255, 255, 0.822);
    transform: translate(-2px);
}


#nav-logo{
    border: none;
    border-radius: 16px;
    max-height: 90px;
    max-width: auto;
    transition: all 0.3s ease;
}

 #nav-logo:hover {
    color: rgba(255, 255, 255, 0.822);
    transform: scale(1.03, 1.03);
}


/*Custom spacing system for consistency*/
:root{
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
}

/* Main Section */
.main-section {
  padding: var(--spacing-lg) 5%; /* Consistent padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: #000000 1px solid;
  min-height: auto;
  gap: var(--spacing-md);
}

/* Section Headers */
.section-header{
  color: white;
  font-weight: 700;
  font-size: 2.5em;
  margin: 0 0  var(--spacing-lg) 0;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

@media(min-width: 768px){
    .main-section{
        padding: var(--spacing-xxl);
    }
}

/*Contact Section*/
#contact-section{
    background: linear-gradient(135deg, #ff9100 0%, #e07b00 100%);
    color: white;
}

.contact-container{
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    
}

@media(min-width: 768px){
    .contact-container{
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-subsection{
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
}

/*Column alignment for tablets and up*/

@media(min-width: 768px){
    .contact-subsection:first-child{
        align-items: flex-start;
        text-align: left;
    }

    .contact-subsection:nth-child(2){
        align-items: center;
        text-align: center;
    }

    .contact-subsection:last-child{
        align-items: flex-end;
        text-align: right;
    }
}

.subsection-header{
    font-size: 1.30rem;
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.subsection-text,.hours-info{
    font-size: 1.0rem;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@media(min-width: 768px){
    .subsection-text, .hours-info{
        font-size: 1rem;
    }

}

/*Social Icons*/

.social-links-container{
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.social-link{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    color: white;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media(min-width: 768px){
    .social-link{
        width: 50px;
        height: 50px;
    }
}

.social-link i{
    font-size: 1.2rem;
}

@media(min-width: 768px){
    .social-link i{
        font-size: 1.5rem;
    }
}

.social-link:hover{
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/*Brand Colors*/

.social-link[href*='facebook']{background-color: #1877f2 }
.social-link.social-link[href*="instagram"] {background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-link[href*='twitter'],.social-link[href*="x.com"]{background-color: #000000;}
.social-link[href*='linkedin']{background-color:#0077b5}



/*Buttons*/

.link-button{
    background-color: white;
    color: rgb(255, 145, 0);
    border: 2px solid;
    padding: 0.75rem 1.5rem;
    font-size: 1.3rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
}

.link-button:hover{
    background-color: rgb(255, 145, 0);
    transform: translateY(-2px);
    color: white;
}

/*Footer*/

.copyright{
    background-color: #222;
    color: white;
    text-align: center;
    padding: var(--spacing-md);
    width: 100%;
}

/*Utility*/

.text-center{text-align: center;}
.hidden{display: none;}
.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
}

/* Prevent body scroll when modal is open */
body.no-scroll {
    overflow: hidden;
}

/* Dragging state */
body.dragging {
    cursor: grabbing;
}

body.dragging .modal {
    cursor: grabbing;
}
