
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');


:root {
    --base-color: #f9f6f3;
    --text-color: #000000;
    --primary-color:#e99e2c;
    --secondary-color:#007910;
    --color-1:#afa69d;
    --color-2:#afa69d;
    --color-3:#332607;
}

.main {
    height: 100vh;                 /* full screen height */
    background-image: url("images/castle.jpg");
    background-size: cover;        /* fill the screen */
    background-position: center;   /* center image */
    background-repeat: no-repeat;
}

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

html{
    font-family: Crimson-Text, serif;
    color:var(--text-color);

}

body{
    padding: 1 em; 
    background-color: var(--base-color);

}

h1,h2,h3{
    font-family: Crimson-Text, Playfair Display, serif;
}

nav{
    margin: 1 em auto 3em auto;
    width: min(1000px,100%);
}

nav ul{
    display: flex;
    align-items: center;
    list-style-type:none;
    gap: 2em;
}

nav li:first-child{
    margin-right: auto;
    font-family: Crimson-Text, Playfair Display, serif;
    font-weight: bold;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
}

nav a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

header, section{
    margin: 0;
    width: 100%;
    padding: min(2em,15%);
}

.flex-container{
    display:flex;
    justify-content: center; 
    align-items: center;
    flex-wrap:wrap;
    gap: 3em; 
}

.text-container{
    flex: 0 1 34em; 
    text-align: center;
}

.main .text-container .hero-tagline {
    min-height: 1.2em;
}

.side-container{
    flex: 0 1 34em; 
    text-align: left;
}

h1{
    font-size: 2.5rem;
    margin-bottom: 0.5em;
}

h2{
    font-size: 1.5rem;
    margin: .75em 0 1em 0;
}

.cta-button{
    display:inline-block;
    text-decoration:none;
    color:white;
    background-color: var(--secondary-color);
    padding: 0.50em 1.20em;
    border-radius: .5em;
    font-weight:600; 
}

.secondary{
    background-color: var(--secondary-color);
}

section{
    padding: 3em min(2em,15%);
    background-color: var(--color-2);
    text-align:center;

}

section p{
    margin-top: 1em;
    font-size:1.25rem;
}

.services-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 680px;
    display: grid;
    place-items: center;
    padding: clamp(3rem, 8vw, 6rem) min(2rem, 8%);
    background: #332607;
    text-align: left;
}

.services-section .services-video {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    background: #332607;
    box-shadow: none;
    pointer-events: none;
}

.services-panel {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem 2.5rem;
    width: min(100%, 900px);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 1rem;
    background: rgba(175, 166, 157, 0.72);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(6px);
}

.services-logo {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    border-radius: 50%;
}

.services-copy {
    min-width: 0;
}

.services-copy h2,
.services-copy h3,
.services-copy p {
    margin-top: 0;
}

.services-copy h3 {
    margin-top: 1.25rem;
}

.services-copy .adjust {
    padding-left: 1.25rem;
    font-size: 1.15rem;
    line-height: 1.7;
}

.services-panel > .cta-button {
    justify-self: start;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 550ms ease, transform 550ms ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.services-copy > [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.services-copy > [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.services-copy > [data-reveal]:nth-child(4) { transition-delay: 240ms; }

.change{
    color:#ffffff;
}

section#my-work{
    background-color: var(--color-3);
}

.grid-container{
    margin-top: 3em;
    margin-bottom: 3em;
    display:grid;
    width:100%;
    grid-template-columns:repeat(4,1fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas: 
    "img-5 img-5 img-1 img-2"
    "img-5 img-5 img-3 img-4";
    gap:1em;
}

.grid-container img{
    height:100%;
    width:100%;
    border-radius:.5em;
    transition:100ms ease;
    aspect-ratio: 1 / 1;
}

.work-gallery-link {
    display: block;
    min-width: 0;
}

.work-gallery-link img {
    display: block;
}

.grid-container img:hover{
    scale:1.05;
}

footer{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:5em;
    background-color:#f9f6f3;
    padding:2.5em 1em 1.5em;
    text-align:center;
}

.footer a{
    margin:0 1em;
    text-decoration:none;
    color: var(--text-color);
}

.footer a:hover{
    text-decoration:underline;
}

.sidebar{
    position: fixed;
    top:0;
    right:0;
    height:100vh;
    width:250px;
    z-index:999;
    background-color: rgba(198, 191, 175, 0.587);
    backdrop-filter:blur(10px);
    box-shadow:-10px 0 10px rgba(0,0,0,0.1);
    display:none;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
}

.sidebar li{
    width:100%
}

.sidebar a{
    width:100%;
}

.menu-button{
    display:none;
}

/*********************************************************/
/*********************************************************/
/* ABOUT SECTION CODE */
/*********************************************************/
/*********************************************************/

body.about-page {
    overflow: hidden;
    height: 100vh;
    background-color: transparent;
}

.about-picture {
    position: fixed;
    top: 0;
    left: 57%;
    width: 43%;
    height: 100%;
    z-index: 2;
}


body.about-page header 
{ 
    position: relative; 
    z-index: 10;
 }

body.about-page nav 
{ 
    position: relative; 
    z-index: 10; 
}

.border-us {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    display: flex;
    padding: 0;
    z-index: 1;
}

.about-left {
    flex: 0 0 60%;
    height: 100%;
    background-color: #f9f6f3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
    z-index: 2;
    overflow: hidden;
}

.about-right {
    flex: 0 0 40%;
    height: 100%;
    background: transparent;
}

.spline-container {
    width: min(360px, 80%);
    height: min(360px, 45vh);
}

.about-text {
    margin-top: 1.5em;
    max-width: 420px;
    text-align: center;
}

.about-text h2 { 
    font-size: 1.6rem; 
    margin-bottom: 0.5em; 
    color: var(--color-3); 
}
.about-text p { 
    font-size: 1rem; 
    line-height: 1.7; 
    color: #444; 
    text-align: left; 
}
.about-text .cta-button { 
    margin-top: 1.2em; 
    display: inline-block; 
}

/*********************************************************/
/*********************************************************/
/*********************************************************/
/* CONTACT SECTION CODE **********************************/
/*********************************************************/

.contact-page{
    font-family: 'Outfit';
    padding:0;
    margin:0;
    box-sizing:border-box;
    background-image:
        linear-gradient(rgba(225, 218, 218, 0.5), rgba(111, 110, 110, 0.5)),
        url("images/background.jpg");
    background-size: cover;     
    background-position: center;  
    background-repeat: no-repeat;
    
}

.contactt-container{
    height:100vh;
    display:flex;
    align-items: center;
    justify-content: space-evenly;
}

.contact{
    display:flex;
    flex-direction: column;
    align-self: center;
    gap:20px;

}

.contact-title h2{
    font-weight:600;
    font-size:40px;
    color:#000000;
    margin-bottom:5px;
}

.contact-title hr{
    border:none;
    width:120px;
    height:5px;
    background-color:#aa4b03;
    border-radius:10px;
    margin-bottom:20px;
}

.contact-inputs{
    width:400px;
    height:50px;
    border:none;
    outline:none;
    padding-left:25px;
    font-weight:500;
    color:#444;
    border-radius: 50px;
}

.contact textarea{
    height:140px;
    padding-top:15px;
    border-radius: 20px;
}

.contact-inputs:focus{
    border:2px solid #ff994f;
}

.contact-inputs::placeholder{
    color:#a9a9a9;
}



/*********************************************************/
/* Gallery */
/*********************************************************/
/*********************************************************/

.gallery-section {
    padding: 3rem 2rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-title{
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent, #b07d4a);
    padding-left: 1.2rem;
}

.gallery-title h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1;
}

.gallery-filters {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.2rem 0 1.25rem;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.gallery-filters::-webkit-scrollbar {
    display: none;
}

.gallery-filter {
    flex: 0 0 auto;
    border: 1px solid #afa69d;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    background: transparent;
    color: var(--text-color);
    font: inherit;
    cursor: pointer;
}

.gallery-filter[aria-pressed="true"] {
    border-color: var(--color-3);
    background: var(--color-3);
    color: #fff;
}

.gallery-empty {
    padding: 1rem 0;
    text-align: center;
}

.gallery-grid {
    columns: 3;
    column-gap: 16px;
}

.project-card {
    display: block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background: #3a3632;
    border: 0;
    padding: 0;
    text-align: left;
}
 
.project-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
 
.project-card:hover img {
    transform: scale(1.05);
}

.project-card:focus-visible,
.gallery-filter:focus-visible {
    outline: 3px solid var(--color-3);
    outline-offset: 3px;
}
 

 
.view-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #b07d4a;
    color: #000000;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}
 
.project-card:hover .view-badge {
    opacity: 1;
}
 
/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(18,16,14,0.96);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
 
.lightbox.active {
    display: flex;
}
 
.lightbox-inner {
    position: relative;
    width: min(900px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
 
.lightbox-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    padding: 0 0.2rem;
}
 
.lightbox-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
}
 
.lightbox-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
 
.lightbox-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
 
.lightbox-close:hover {
    border-color: #b07d4a;
    color: #b07d4a;
}
 
/* ── Carousel ── */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: transparent;
    width: 100%;
}
 
.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
 
.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.carousel-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
 
.carousel-slide .slide-caption {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
    background: #3a3632;
}
 
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
 
.carousel-btn:hover {
    background: #b07d4a;
    border-color: #b07d4a;
    color: #000000;
}
 
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
 
.slide-counter {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.1em;
    text-align: right;
    padding: 0.4rem 0.2rem 0;
}
 
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 0 0;
}
 
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.2s;
}
 
.dot.active {
    background: #b07d4a;
    border-color: #b07d4a;
    transform: scale(1.3);
}
 

.final-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #b07d4a;
    color: #0b0b0b;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 2px;
    z-index: 5;
}


















/*********************************************************/
/*********************************************************/
/*MOBILE ADJUSTMENT********************************/
/*********************************************************/

@media(max-width:988px){
    header{
        text-align:center;
    }

    header .text-container{
        padding-top: 0;
    }
}

@media(max-width:800px){
    .hideOnMobile{
        display:none;
    }
    .menu-button{
        display:block;
    }

    .services-section {
        min-height: 620px;
    }

    .services-panel {
        grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
        gap: 1.25rem 1.5rem;
    }

}

@media(max-width:400px){
    .sidebar{
        width:100%;
    }
}

@media(max-width:540px){
    .cta-button{
        margin-top:.5em;
        width:100%;
    }

    .grid-container{
        display:flex;
        flex-direction:column;
    }

    .services-section {
        min-height: 0;
        padding: 3rem 1rem;
    }

    .services-panel {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 1.5rem;
    }

    .services-logo {
        max-width: 180px;
    }

    .services-copy {
        width: 100%;
    }

    .services-panel > .cta-button {
        justify-self: stretch;
    }

    .text-container p{
        font-size:1rem;
    }

    .h2{
        font-size:1.5rem;
    }

    .gallery-section {
        padding: 2rem 0.75rem 3rem;
    }

    .gallery-title {
        margin-bottom: 1rem;
        padding-left: 0.8rem;
    }

    .gallery-grid {
        columns: 2;
        column-gap: 10px;
    }

    .project-card {
        margin-bottom: 10px;
        border-radius: 16px;
        background: transparent;
    }

    .project-card img {
        height: auto !important;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/*********************************************************/
/* ABOUT SECTION CODE*/ 
/*********************************************************/
/*********************************************************/
/*********************************************************/

@media (max-width: 800px) {
    body.about-page 
    { 
        overflow-y: auto;
        height: auto; 
    }
    .border-us 
    { 
        position: relative; 
        flex-direction: column; 
        height: auto; 
    }

    .about-left 
    { 
        flex: none; 
        width: 100%; 
        min-height: 100vh; 
    }
    
    .about-right 
    { 
        display: none; 
    }
    
    .spline-container {
        width: min(500px, 60vw);
        height: min(400px, 30vh);
    }
   
    .about-picture 
    {
    display: none;
    }
}

@media (max-width: 988px) {
    .about-left {
        padding-top: 4em;
    }
}


