@import "reset.css";
@import "fancy-ol.css";
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Marcellus+SC&display=swap');

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

html.disable-snap {
    scroll-snap-type: none;
}

body { /* Do not add bg; bg comes from external file */
    background-attachment: fixed;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 200;
    font-size: 16px;
    line-height: 1.7;
}




:root {
--main-dark: #0e0e0ed5;
--main-light: #fff;
--test: hotpink;
--accent: indigo;
}

/* ------------------------------------------------ GENERAL TYPOGRAPHY */
.linkish,
a:hover { color: yellowgreen; }

h1 {
    font-weight: 100;
    font-size: 3rem;
    line-height: 1.1;
}

h2 {
    font-weight: 100;
    font-size: 2.5rem;
    line-height: 1.1;
}

h3 {
    font-weight: 100;
    font-size: 2.1rem;
    line-height: 1.1;
}

p {
    margin-bottom: 2rem;
}

ul {
    list-style: square;
    margin-left: 1.5rem;
    margin-bottom: 3rem;
}

ul li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

/* ------------------------------------------------ SECTIONS FUNDAMENTAL */
/* ------------------------------------------------ SECTIONS FUNDAMENTAL */
/* ------------------------------------------------ SECTIONS FUNDAMENTAL */
/* ------------------------------------------------ SECTIONS FUNDAMENTAL */

section { min-height: 100vh; scroll-snap-align: start; }
section:last-of-type { scroll-snap-align: center; }

html.disable-snap section { margin-bottom: 4rem; }
html.disable-snap #section-hero { margin-bottom: 0; }


.show { border: 1px solid orange; }

section.content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.material {
    margin-top: 2.7rem;
    margin-bottom: 2.7rem;
    max-width: 700px;
    margin: auto 10vw;
}
.material h2 {
    tXXXXext-wrap: pretty;
    text-wrap: auto;
    margin-bottom: 1.5rem;
}
.material p {
    font-size: 1.2rem;
}



/* ------------------------------------------------ SECTIONS SHARED UITLITY */
/* ------------------------------------------------ SECTIONS SHARED UITLITY */
/* ------------------------------------------------ SECTIONS SHARED UITLITY */
/* ------------------------------------------------ SECTIONS SHARED UITLITY */

div.area {
    padding: 2.5rem 3rem 1rem 3rem;
    border-left: 1px solid var(--main-light);
}


/* add Black background */
.bg-black {
    background: var(--main-dark);
    border: none !important;
}


/* ------------------------------------------------ SECTIONS INDIV STYLES */
/* ------------------------------------------------ SECTIONS INDIV STYLES */
/* ------------------------------------------------ SECTIONS INDIV STYLES */
/* ------------------------------------------------ SECTIONS INDIV STYLES */

#section-plan ol p { margin-bottom: 1.5rem ;}


#section-others h2 { 
    text-wrap: balance; 
    text-align: right;
}
#section-others .area {
    border: none;
    border-right: 1px solid var(--main-light);
}


#section-cta .area p:last-child { margin-bottom: 0; }
#section-cta h2 {text-wrap: pretty;}

/* ------------------------------------------------ CONTACT FORM */

#contact-form {
    margin: 1.5rem 0;
}

.two-per-row {
    width: 100%;
    display: flex;
    gap: 1rem;
}
.two-per-row #name { flex-grow: 3; } /* XXX doesn't work */
.two-per-row #email { flex-grow: 5; } /* XXX doesn't work */

#contact-form input,
#contact-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 200;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid;
    border-image: conic-gradient(from var(--angle), #04003e, #8b5cf6, #ec4899, #8b5cf6, #331ba8, #1c0b71, #04003e ) 1;
    animation: rotate 10s linear infinite;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 200;
}

#contact-form textarea {
    min-height: 160px;
    resize: vertical;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
}

#contact-form button {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    padding: 0 4rem;
    height: 65px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#contact-form button:hover {
    background: rgba(0, 0, 0, 0.7);
    color: yellowgreen;
}






/* ------------------------------------------------ HEADER */
header {
    position: fixed;
    padding: 12px 24px;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-out;
}

body.scrolled header {
    opacity: 1;
    pointer-events: auto;
}

html.disable-snap header,
body.mobile header {
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 900px at 12% 18%, color-mix(in oklab, var(--ink1) 70%, transparent) 0%, transparent 62%),
        radial-gradient(900px 700px at 82% 28%, color-mix(in oklab, var(--ink2) 65%, transparent) 0%, transparent 58%);
    background-attachment: fixed;
}

nav {
    padding-top: 5px;
}

#hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
}

/* ------------------------------------------------ HERO-TO-HEADER TRANSITION */

/* Hero section - black background that fades out */
#section-hero {
    position: relative;
    min-height: 100vh;
    background-color: #000;
    transition: background-color 0.4s ease-out;
}

body.scrolled #section-hero {
    background-color: transparent;
}

/* Main logo - animates from center to top-left */
#main-logo {
    position: fixed;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    transition: all 0.4s ease-out;
}

body.scrolled #main-logo {
    width: 40px;
    height: 40px;
    top: 12px;
    left: 24px;
    transform: translate(0, 0);
}

/* Main title - animates from center to header position */
#main-title {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 150px));
    font-family: "Marcellus SC", serif;
    font-size: clamp(1.5rem, 7vw, 3rem);
    white-space: nowrap;
    color: #fff;
    text-align: center;
    z-index: 101;
    transition: all 0.4s ease-out;
}

body.scrolled #main-title {
    font-size: 1.4rem;
    top: 12px;
    top: 18px;
    left: 82px;
    transform: translate(0, 0);
}

/* Tagline - fades out */
#tagline {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 150px));
    font-family: "Alex Brush", cursive;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: #fff;
    text-align: center;
    z-index: 101;
    transition: opacity 0.4s ease-out;
    max-width: 90vw;
}

body.scrolled #tagline {
    opacity: 0;
    pointer-events: none;
}


/* ------------------------------------------------ SPECIAL FX */

/* animated border - not used, but the inspirations for contact forms  */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.animated-border {
  border: 1px solid;
  border-image: conic-gradient(from var(--angle), #8b5cf6, #ec4899, #04003e, #331677, #8b5cf6) 1;
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  to { --angle: 360deg; }
}


/* spinning plus icon on hover for ul's
    we don't use this currently but we'd want it for more
    in depth explanations of service offerings  */

#section-services li {
  list-style: none;
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0;
  padding-bottom: 0.75rem;
}

#section-services li::before {
  -webkit-font-smoothing: none;
  content: '';
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 18px;
  height: 18px;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23ffffff"%3E%3Cpath d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"/%3E%3C/svg%3E');
  background-size: contain;
  background-repeat: no-repeat;
}

#section-services li::before {
  transition: transform 0.3s ease;
}

#section-services li:hover::before {
  transform: rotate(45deg);
}



/* ------------------------------------------------ RESPONSIVE STYLES */

/* Mobile breakpoint */
@media (max-width: 640px) {
    h2 {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .material {
        margin-left: 5vw;
        margin-right: 5vw;
    }

    div.area {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }

    .two-per-row {
        flex-direction: column;
    }

    /* Hamburger menu on mobile */
    #hamburger {
        display: block;
    }

    #nav-menu {
        display: none;
    }

    #nav-menu.open {
        display: block;
        position: absolute;
        top: 100%;
        right: 24px;
        background-color: var(--bg);
        background-image:
            radial-gradient(1200px 900px at 12% 18%, color-mix(in oklab, var(--ink1) 70%, transparent) 0%, transparent 62%),
            radial-gradient(900px 700px at 82% 28%, color-mix(in oklab, var(--ink2) 65%, transparent) 0%, transparent 58%);
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Ensure title doesn't cover hamburger */
    body.scrolled #main-title {
        font-size: clamp(1rem, 4vw, 1.4rem);
        max-width: calc(100vw - 120px);
    }

    /* Reduce numbered list marker column on mobile */
    .fancy-ol {
        --col: 45px;
        --size: 1.4rem;
    }

    .fancy-ol > li {
        padding-left: calc(var(--col) + 16px);
    }

    /* Make tagline wrap less aggressively */
    #tagline {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        white-space: nowrap;
    }
}