/*Welcome to the CSS Page. Need a website? Contact dtdigitals.com today!*/

/* Fonts */
@font-face {
    font-family: 'Bodoni Moda';
    src: url('./fonts/BodoniModa-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 400 900; 
    font-style: normal;
}

@font-face {
    font-family: 'Bodoni Moda';
    src: url('./fonts/BodoniModa-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 400 900; 
}

@font-face {
    font-family: 'Williwaw';
    src: url('./fonts/Williwaw-Book.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900; 
}

@font-face {
    font-family: 'DM Sans';
    src: url('./fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
}


/*Variables and Root*/

:root {
    --ff-body: "Williwaw", sans-serif;
    --clr-primary: #feffe9;
    --clr-light-accent: #fffdc1;
    --clr-dark-accent: hsl(63.93, 31.28%, 61.76%);


    --fs-xl: clamp(2rem, 2.5vw + 1rem, 4rem);
    --fs-600: 2rem;
    --fs-400: 1.3rem;
}

@media (min-width: 40em) {
:root {
  --fs-600: 3rem;
  --fs-400: 1.5rem;
}
}

@media (min-width: 60em) {
    :root {

      --fs-400: 1.6rem;
    }
    }

body,
h2,
h3,
p,
blockquote {
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

h1 {
    margin: 0;
  padding: 0;
  line-height: 1;
}

h4, p {
    line-height: 1.1;
}


body {
    background-color: var(--clr-primary);
    font-family:var(--ff-body);
    margin: 0;
    }
button {
    font-family:var(--ff-body);
}

/* Disable scrolling on Drop Down Menu*/
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

h1 {
    font-size: var(--fs-xl);
}
h2 {
    font-size: var(--fs-xl);
}

h3 {
    font-size: var(--fs-600);
}
h4, p {
    font-size: var(--fs-400);
}


/* Header */

header {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    padding-bottom: 20px;
}

header.active {
    background-color: var(--clr-light-accent);
}

.site-title {
    text-align: center;
}



#icons-mobile {
    padding-left: 45px;
    display: inline-flex;
    gap: 15px;
}

.social-media-header-icons {
    padding-bottom: 20px;
    padding-left: 35px;
    display: inline-flex;
    gap: 15px;
}

.cv {
    font-size: 27px;
    margin-top: -1px;
}

.cv-mobile {
    font-size: 20px;
    margin-top: -2px;
}


.desktop-nav-bar {
    text-align: center;
    font-size: var(--fs-400);
    display: inline-flex;
    gap: 30px;
    margin: 0 auto;
    
}

@media (max-width: 775px) {
    .social-media-header-icons,
    .desktop-nav-bar
    {
        display: none;
    }
}

.work-dropdown-desktop {
    position: relative;
  display: inline-block;
  cursor: pointer;
}

.work-dropdown-desktop-content {
    opacity: 0;
  position: absolute;
  background-color: #f9f9f9;
  width: max-content;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  outline: 1px solid;
  padding: 12px 16px 8px 16px;
  z-index: 1;
  left: 50%; 
  transform: translateY(-10px) translateX(-50%);
  visibility: hidden;
  background-color: var(--clr-primary);
}

.work-dropdown-desktop:hover .work-dropdown-desktop-content {
    opacity: 1;
    transform: translateY(0px) translateX(-50%);
    visibility: visible;
    transition: opacity 150ms ease-in-out, transform 250ms ease-in-out;
}

.work-dropdown-desktop-content p {
    margin-top: 4px;
}

/* Moble Hamburger Menu*/

.menu-container {
    display: none;
    position: absolute;
    left: 30px;
    top: 35px;
    padding: 10px;
    width: 7px;
    cursor: pointer;
    z-index: 100;

  }

@media (max-width: 775px) {
    .menu-container {
        display: inline-block;
    }
}

  
  #menu-bar1, #menu-bar2 {
    width: 100%;
    height: 2px;
    background: black;
    transition: 0.3s ease-in-out;
    position: absolute;
    left: 0;
  }
  
  #menu-bar1 {
    top: 0;
  }
  
  .change #menu-bar1 {
    transform: translateX(0px) rotate(-225deg) translate(0px, -7px);

  }
  
  .change #menu-bar2 {
    transform: translateX(0px) rotate(225deg) translate(0px, 7px);

  }

  .site-title.shift {
    transform: translateX(0px); /* Adjust this value to match the shift you notice */
    
}
  
/*Full Screen Drop Down Menu Mobile*/

.full-screen-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--clr-light-accent);
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s ease;
    z-index: 5;
    font-family: "DM Sans";
    font-weight: 200;
    line-height: 1.2;
    letter-spacing: .15rem;
}

.full-screen-menu ul {

    list-style: none;
    padding-left: 40px;
    padding-bottom: 50%;
    margin: 0;
    text-align: left;
}

.full-screen-menu li {
    margin: 0px 0;
}

.full-screen-menu p {
    text-decoration: none;
    color: black;
    font-size: 2.5rem;
    transition: color 0.3s ease;
}


.full-screen-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.flex-container {
    display: flex;
    gap: 1em;
  }

  .arrow {
    position: relative;
    display: inline-block;
    width: 15px;
    height: 15px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    vertical-align: middle;
    margin-top: 1.1em;
    transform: rotate(45deg);
    cursor: pointer;
    transition: .2s
  }

  .menu-arrow-down {
    transform: rotate(135deg);
    transition: .2s;
  }

  .dropdown-wrapper {
    display: flex;
    flex-direction: column;
  }
  
  .My-Work-Menu {
    height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: height 300ms ease, opacity 300ms ease;
    padding-left: 2.5rem;
  }
  
  .has-dropdown.open .My-Work-Menu {
    opacity: 1;
    visibility: visible;
  }
  
  

.My-Work-Menu p {
    font-size: 1.5rem;
}

.social-media-header-icons.mobile {
    position: fixed;
    bottom: 25vh;
}

.my-work-p {
    cursor: pointer;
}

@media (min-width: 775px) {
    .full-screen-menu {
        display: none;
    }

    header {
        background-color: var(--clr-primary); /* Reset header background */
    }

    body.no-scroll {
        overflow: visible; /* Re-enable scrolling */
    }
}
  

/* Home Content */
.grid-container {

    border-top: 1px solid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 6%;
    gap: 8%;
    justify-content: center;
    align-items:center;

}

.smaller-grid {
    padding-left: 15%;
    padding-right: 15%;
}

.grid-item {
    text-align: center;
    
}



#ChelseaGreenDressMobile {
    display: none;
}

#Home-Accent-Content {
    background: var(--clr-light-accent);
    

}


#About-Accent-Content {
    
    background-color: var(--clr-primary);
}

#TheatreBox {
    text-align: left;
    h3 {
    text-wrap: balance;
    }
}

#Home-Accent-Content-Testimonial {
    background-color: var(--clr-light-accent);
}

#Testimonial-Box {

   text-align: left;
   align-self: start;
}

@media (max-width: 775px) {
    .grid-container, .smaller-grid {
        grid-template-columns: 1fr;
        padding: 4%;
        gap: 0;
        
    }
    .grid-item {
        margin-top: 1rem;
        margin-bottom: 1rem;

    }

    #TheatreBox, #Testimonial-Box {
        text-align: center;
    }

    #ChelseaGreenDressMobile {
        display: inline-block;
       
    }

    #ChelseaGreenDressGrid {
        display: none;
    }

}

#Past-work-div {
    background-color: var(--clr-dark-accent);
}

#Past-Work {
    text-align: center;
    border-top: 1px solid;
    padding-top: 6%;
    
}

#grid4 {
    grid-template-columns: repeat(4, 1fr);
    border: none;
    background-color: var(--clr-dark-accent);
    align-items: start;
}

#grid4 a {
    color: var(--clr-light-accent);
    text-decoration: underline;
}

.footer {
    
    border-top: 1px solid;
    padding: 6% 0 10px;
    text-align: center;
    background-color: var(--clr-light-accent);
}

#offerings p{
    text-align: left;
}



/* About Content */

#about-select {
    text-decoration: underline;
}

#About-Accent-Content {
    align-items: start;
}

#About-Text {
    text-align: left;
}



@media(max-width: 775px) {
    #About-Text{
    text-align: center;
}

.spacer {
    display: none;
}

#ChelseaAboutPic1 {
    display: none;
}

}

#ChelseaAboutPic {
    max-width: 100%;
    height: auto;
}

#ChelseaAboutPic1 {

    max-width: 100%;
    height: auto;
}

#Contactimg {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;

}

#About-Text a {
    color: #7393B3;
    text-decoration: underline;
}

@media (min-width: 1650px) {
    #ChelseaAboutPic1 {
        margin-top: -75px;
    }
    #ChelseaAboutPic {
        width: 100%;
        height: 650px; /* Scales height */
    object-fit: cover; /* Ensures cropping instead of stretching */
        object-position: bottom 10%;
    }
}

.spacer {
    
    height: clamp(25px, calc(100vh - 50vw), 300px);
    
}

.grid3 {
    padding: 8%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items:start;
}


.Banner-Img {
    width: 100%; 
    height: 60vh; 
    background-image: url('img/ChelseaFlowerBanner.jpg');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    
}




.block-quote {
    padding: 3% 8% 8%;
    text-align: center;
}

/*Community Page*/

.container{
    border-top: 1px solid;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-gap: 1rem;
    
}

.tile {
    position: relative; /* Ensure positioning for overlay */
    overflow: hidden;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Dark overlay effect */
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Dynamic Text Overlay */

@media (max-width: 775px) {
    .tile {
        pointer-events: none; /* Disable pointer events for the entire tile */
    }

    .tile .tile-mobile-title a {
        pointer-events: auto; /* Re-enable pointer events for just the link */
    }
}

.tile .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.tile .overlay-text a {
    color: white;
}

@media (min-width: 776px) {
/* Hover Effects */
.tile:hover::after {
    opacity: 1;
}

.tile:hover .overlay-text {
    opacity: 1;
}
}
.tile:nth-child(1){
    grid-column: span 4;
    grid-row: span 2;
}

.tile:nth-child(2),
.tile:nth-child(3){
    grid-column: span 2;
}

.tile:nth-child(4){
    grid-column: span 4;
    grid-row: span 1;
}

.tile:nth-child(5){
    grid-column: span 2;
    grid-row: span 2;
}

.tile:nth-child(6) {
    grid-column: span 4;
    grid-row: span 1;
}

.tile:nth-child(7), .tile:nth-child(8), .tile:nth-child(9) {
    grid-column: span 2;
    grid-row: span 2;
}

.tile:nth-child(10) {
    grid-column: span 2;
    grid-row: span 1;

}

.tile-mobile-title {
    text-align: center;
    color: #7393B3;
    text-decoration: underline;
}

@media(min-width:775px) {
.tile-mobile-title {
    display: none;
}
}

@media(max-width:775px) {
    overlay-text {
        display: none;
    }
}

@media screen and (max-width: 775px){
    .container{
        display: block;
    }
    .tile{
        margin-bottom: 1rem;
    }
}

/* Site Styles */


.icon {
    width: 1.25rem;
    height: 1.25rem;
}


a {
    text-decoration: none;
    color: black;
}

.fade-in {
    opacity: 0;
    transition: opacity 2s ease;
  }
  
.fade-in.visible {
    opacity: 1;
  }

  #ChelseaGreenDress {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 45px;
}

#ChelseaGreenDressMobile {
    width: 85%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 45px;
    margin-bottom: 40px;
}



@media (max-width: 1200px) and (min-width: 876px) {
    #ChelseaGreenDress {
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 875px) and (min-width: 776px) {
    #ChelseaGreenDress {
        aspect-ratio: 3.5 / 5.5;
    }
}

  #Thesis, #Imagination, #Community, #ThesisMobile {
    object-fit: cover;
    width: 100%;
  }

  #Community {
    padding-bottom: 5rem;
  }

  #ThesisMobile {
    display: none;
  }
  
  @media (max-width: 775px) {
    #Thesis {
        display:none;
    }

    #ThesisMobile {
        display: block;
    }
  }
  