/* #BASE CSS (Initital Setup)
---------------------------------
    #GLOBAL SETTINGS
        # GLOBAL VARIABLES
        # GLOBAL RESETS
        # GLOBAL COLORS
    #BASE CONTENT
        #TYPOGRAPHY
            #BODY
            #HEADINGS
            #PARAGRAPHS
            #LINKS
        #HELPERS
        #MEDIA
            #IMAGES
            #VIDEO
        #COMPONENTS
            #BUTTONS
    #BASE LAYOUT
        #CONTAINER
        #MEDIA QUERIES
        #GRID SYSTEM
    #BASE SITE
        #SITE STRUCTURE
            #HEADER
                # site-logo (LOGO)
            #SITE NAVIGATION
                # toggle-nav (Default for Small Screens)
            #FOOTER
            #SECTIONS
              # ...
            #SUB PAGES
              #...
--------------------------------- */
/* ----------------------------- */
/* ----- GLOBAL STYLING -------- */
/* ----------------------------- */
/* ----- SET GLOBAL VARIABLES ----- */
:root {
  /* BASE COLORS */
  --color-body-background: white;
  --color-text-body: rgba(0, 0, 0, 0.8);
  --color-text-headings: black;
  --color-links: #000000;
  --color-links-hover: #E06440;
  /* BASE TYPOGRAPHY */
  --body-weight: 4 00 --font-body: Futura, Helvetica, system-ui, Arial, sans-serif;
  --font-headings: Italiana, system-ui, Helvetica, Arial, sans-serif;

}

/* GLOBAL RESETS */
/* CHANGE BOX-SIZING FOR ALL TO BORDER-BOX */
* {
  box-sizing: border-box;
}

/* REMOVE THE DEFAULT 8px MARGIN ON THE BODY */
body {
  margin: 0;
}

/* ENABLE NATIVE SMOOTH SCROLLING */
html {
  scroll-behavior: smooth;
}

/* GLOBAL COLORS */
body {
  /* SET THE COLOR OF THE MAIN BODY BACKGROUND */
  background-color: var(--color-body-background);
  /* SET THE COLOR OF THE MAIN BODY TEXT */
  color: var(--color-text-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  /* SET THE COLOR OF ALL HEADINGS */
  color: var(--color-text-headings);
}

a {
  /* SET THE COLOR OF ALL TEXT LINKS */
  color: var(--color-links);
}

a:hover {
  /* SET THE COLOR OF ALL HOVER STATES ON TEXT LINKS */
  color: var(--color-links-hover);
}

/* ----- SET GLOBAL TYPOGRAPHY ----- */
/* # GLOBAL BODY FONT SETTINGS */
body {
  /* SET THE DEFAUT FONT FAMILY FOR ALL MAIN BODY TEXT */
  font-family: var(--font-body);
  /* SET THE DEFAULT FONT SIZE ALL MAIN BODY TEXT */
  /* 100% = 16px */
  font-size: 100%;
  /* SET THE DEFAULT LEADING (LINE-HEIGHT) FOR ALL BODY TEXT */
  line-height: 1.4;
}

/* # GLOBAL HEADING SETTINGS */
h1,
h2,
h3,
h4,
h5,
h6 {
  /* SET THE DEFAUT FONT FAMILY FOR ALL HEADINGS */
  font-family: var(--font-headings);
  /* SET THE DEFAUT MARGINS ALL HEADINGS */
  margin: 1em 0 0.25em 0;
  /* BALANCE ALL MULTI-LINE HEADINGS */
  text-wrap: balance;
  /* REDUCE TOP MARGIN IF FIRST CHILD */
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0.5em;
}

/* SET THE DEFAULT TYPOGRAPHIC SCALE FOR ALL HEADINGS 
   (e.g. a "Traditional" Scale) */
h1 {
  /* 48px / 16px = 3em */
  font-size: 3em;
  line-height: 1;
}

h2 {
  /* 36px / 16px = 2.25em */
  font-size: 2.25em;
  line-height: 1.1;
}

h3 {
  /* 24px / 16px = 1.5em */
  font-size: 1.5em;
  line-height: 1.2;
}

h4 {
  /* 21px / 16px = 1.3125em */
  font-size: 1.3125em;
  line-height: 1.3;
}

h5 {
  /* 18px / 16px = 1.125em */
  font-size: 1.125em;
  line-height: 1.4;
}

h6 {
  /* 16px / 16px = 1em */
  font-size: 1em;
  line-height: 1.5;
}

/* # GLOBAL PARAGRAPH SETTINGS */
p {
  /* SET THE DEFAUT MARGINS ALL PARAGRAPHS */
  margin: 0.5em 0;
  /* SET THE NUMBER OF CHARACTERS PER LINE */
  max-width: 65ch;
  /* WIDOW FIXER */
  text-wrap: pretty;
}

/* TEXT CENTERING HELPER CLASS */
.text-centered {
  text-align: center;
}

/* CENTER PARAGRAPHS WITH THE TEXT-CENTERED CLASS */
p.text-centered,
.text-centered p {
  margin-inline: auto;
}

/* DECREASE HEADING TOP MARGIN WHEN FOLLOWING AN IMAGE */
img+h1,
img+h2,
img+h3,
img+h4,
img+h5,
img+h6 {
  margin-block-start: 0.25em;
}

/* ----- #MEDIA (Images, Videos, etc) -----  */
/* #IMAGES - MAKE ALL IMAGES RESPONSIVE BY DEFAULT */
img {
  max-width: 100%;
  height: auto;
}

/* #VIDEO - MAKE ALL IMAGES RESPONSIVE BY DEFAULT */
video {
  max-width: 100%;
  height: auto;
}

/* ----- #COMPONENTS -----  */
/* #BUTTONS */
button,
a.button {
  display: inline-block;
  background-color: transparent;
  border: 2.5px dashed var(--color-links);
  border-radius: 73px;
  color: black;
  padding: 0.75em 1em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  line-height: 1;

  /* Dahed Boarder from gen https://codepen.io/amit_sheen/pen/xxZeyjO */
  /* background-image: repeating-linear-gradient(-4deg, #333333, #333333 14px, transparent 14px, transparent 27px, #333333 27px), repeating-linear-gradient(86deg, #333333, #333333 14px, transparent 14px, transparent 27px, #333333 27px), repeating-linear-gradient(176deg, #333333, #333333 14px, transparent 14px, transparent 27px, #333333 27px), repeating-linear-gradient(266deg, #333333, #333333 14px, transparent 14px, transparent 27px, #333333 27px);
  background-size: 2px 100%, 100% 2px, 2px 100%, 100% 2px;
  background-position: 0 0, 0 0, 100% 0, 0 100%;
  background-repeat: no-repeat; */

}

button.alt,
a.button.alt {
  background-color: grey;
  border: 1px solid var(--color-links);
  color: var(--color-links);
}

button:hover,
a.button:hover {
  background-color: var(--color-links-hover);
  color: #fff;
  border-color: var(--color-links-hover);
  text-decoration: none;
}

/* ----------------------------- */
/* ----- BASE LAYOUT -------- */
/* ----------------------------- */

/* SITE-WIDE CONTAINER */
.container {
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 4em;
}

/* SCALING TYPE FROM SMALL (14px) TO LARGER (18px) ACROSS SCREEN SIZES */
/* DEFAULT / SMALL & MEDIUM SCREENS = 14px */
body {
  font-size: 87.5%;
}

/* MIDSIZE / LAPTOP SCREENS = 16px */
@media (min-width: 1050px) {
  body {
    font-size: 100%;
  }
}

/* LARGE / DESKTOP SCREENS = 18px */
@media (min-width: 1250px) {
  body {
    font-size: 112.5%;
  }
}

/* A SIMPLE SEMANTIC GRID USING CSS FLEX BOX */
.row {
  /* SET THE GAP BETWEEN COLUMNS */
  --gridgap: 8%;
}

/* GIVE EACH ROW SOME TOP AND BOTTOM MARGINS VIA THE CHILD COLUMNS */
.row>* {
  margin-block: calc(var(--gridgap) * 0.5);
}

/* ENABLE THE GRID LAYOUT FOR MEDIUM SCREENS AND UP */
@media (width >=768px) {
  .row {
    display: flex;
    gap: var(--gridgap);
  }

  /* SIMPLE SEMANTIC COLUMN WIDTHS */
  .row .one-whole {
    width: 100%;
  }

  .row .one-half {
    width: calc(50% - calc(var(--gridgap) * .5));
  }

  .row .one-third {
    width: calc(33.3333% - calc(var(--gridgap) * .6666));
  }

  .row .two-thirds {
    width: calc(66.6666% - calc(var(--gridgap) * .3333));
  }

  .row .one-fourth {
    width: calc(25% - calc(var(--gridgap) * .75));
  }

  .row .three-fourths {
    width: calc(75% - calc(var(--gridgap) * .25));
  }

  /* GRID SPECIFIC HELPER CLASSES  */

  /* SWAPPED COLUMNS */
  .row.swapped {
    flex-direction: row-reverse;
  }

  /* CENTERED COLUMNS */
  .row .centered {
    margin-inline: auto;
  }

  .row.centered {
    justify-content: center;
  }

}

/* FOR GRID DEMO PURPOSES ONLY */
.grid-demo .row>* {
  background-color: #ddd;
  padding: 1em;
  text-align: center;
}

/* ----------------------------- */
/* ---- BASE SITE STRUCTURE ---- */
/* ----------------------------- */

/* SITE HEADER */
.site-header {
  padding: 1em;
}

/* SITE HEADER ON SMALL SCREENS */

@media (width >=768px) {

  .site-header {
    padding: 1em;
    text-align: center;
    position: relative;
  }
}

/* SITE LOGO */
.site-logo img {
  height: 80px;
  width: auto;
  display: block;
}

/* CENTER THE LOGO IN HEADER FOR MOBILE SCREENS */
.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 1em;
}

/* RESET LOGO HEADING STYLES */
.site-logo h1 {
  text-align: center;
  font-size: 1.2em;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.site-logo a {
  text-decoration: none;
  color: var(--color-text-headings);
  padding: .5em 0;
  display: block;
}

/* SITE NAVIGATION */

@media (width >=768px) {
  .site-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48em;
  }
}

.site-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

@media (width >=768px) {

  .site-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4em;
  }

}

.site-navigation a {
  text-decoration: underline;
  text-underline-offset: 5px;
  font-family: var(--font-headings);
  color: var(--color-text-headings);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9em;
}


.full-width-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* TOGGLE NAV */


/* HIDE THE MENU BUTTON BY DEFAULT */
.menu-button {
  display: none;
}

@media (width < 768px) {

  .toggle-nav {

    /* SHOW THE MENU BUTTON IF INSIDE OF .toggle-nav PARENT */
    .menu-button {
      display: inline-block;
    }

    /* HIDE THE NAV BY DEFAULT + IF CLOSED */
    .site-navigation ul,
    .site-navigation[data-navstate="closed"] ul {
      height: 0;
      overflow: hidden;
    }

    /* IF OPEN, SHOW THE NAV */
    .site-navigation[data-navstate="open"] ul {
      padding-top: 1em;
      height: auto;
    }

    /* PLACE THE LOGO TO THE LEFT AND BREAK NORMAL FLOW */
    .site-logo {
      position: absolute;
    }

    /* POSITION THE MENU BUTTON TO THE RIGHT */
    .site-navigation {
      text-align: right;
    }

    /* RESET THE MENU BUTTON STYLING */
    .menu-button {
      margin: 0;
      padding: .5em;
      border: 1px solid var(--color-text-headings);
      background-color: transparent;
      color: var(--color-text-headings);
    }

    .site-navigation a:hover {
      background-color: var(--color-links);
      color: white;
    }

  }

}



/* NAVICON */
.menu-button.navicon {

  /* REMOVE DEFAULT BUTTON STYLING */
  border: none;
  padding: 0;
  font-family: monospace;

  &::after {
    display: inline-block;
    content: "\2630";
    font-size: 2em;
    padding: .15em .25em .0 .25em;
    line-height: 1;
  }

  span {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

}

.toggle-nav .site-navigation[data-navstate="open"] .menu-button.navicon::after {
  content: "\2715";
  padding: .15em .4em 0 .4em;
}




/* SITE MAIN */
.site-main {
  /* background-color: yellow; */
}

/* SITE FOOTER */
.site-footer {
  /* background-color: #efefef; */
  padding: 4em 0;
}

.site-footer img+h2 {
  margin-block-start: 0.25em;
}

.footer-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  padding-block-end: 2em;
}

.site-footer .row {
  align-items: end;
}

/* SECTIONS */
section {
  padding-block: 6em;
}

/* HERO SECTION STYLING */
.hero {
  text-align: center;
  padding-inline: .5em;
  font-size: 1.2em;
  background-image: url(../img/hero-bckg.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.hero p {
  margin-inline: auto;
}

.full-width-image {
  margin-bottom: 0;
  padding-bottom: 0;
}


/* SUB SECTION STYLYING */
.subsection-title {
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;

  &::after {
    content: "";
    display: block;
    width: 50px;
    height: 5px;
    background-color: #ccc;
    margin-inline: auto;
    margin-block: 1em 4em;
  }

}

/* SERVICES SECTION STYLING */

@media (width < 768px) {
  #services .row .row>*:last-child {
    margin-block-end: 5em;
  }
}

/* CLIENT SECTION STYLING */
@media (width>=768px) {

  .bathup {
    translate: 0 -5em;
  }

}

/* HERO SECTION THINGS */

@media (width>=768px) {
  .head-1 {
    font-size: 2em;
    margin-top: -5%;
    margin-bottom: -3%;
    margin-right: -20%;
  }

  .hero-image1 {
    width: 20vw;
    height: auto;
    margin-top: -13%;
    margin-left: -49%;
    position: absolute;
    z-index: 0;
  }







  .head-2 {
    font-size: 6em;
    margin-top: 5%;
    margin-bottom: 10%;
    margin-left: -37%;
  }

  .head-3 {
    font-size: 2em;
    margin-top: -10%;
    margin-left: 20%;
  }

  .hero-image2 {
    width: 14vw;
    height: auto;
    margin-top: -12%;
    margin-left: 17%;
    position: absolute;
    z-index: -1;
  }





  .head-4 {
    margin-top: 8%;
  }


}

/* ABOUT SECTION STYLING */


@media (width >=768px) {

  #about.about {
    padding-top: 0;
    padding-bottom: 0;
  }

  .about {
    display: flex;
    allign-items: flex-start;


  }

  .container-grid {
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: 4em;

  }


}

@media (width >=768px) {
  .about-grid {
    display: grid;
    grid-template-columns: 0.5fr 1.8fr 5fr 2fr 1fr 1fr 2fr 0.5fr;
    grid-template-rows: auto auto auto auto auto auto auto auto;
    height: -300px;
    gap: 1em;


    .textbox {
      grid-column: 3 / 5;
      grid-row: 1 / 2;


      h2 {
        grid-column: 4 / 5;
        font-size: 1.4em;
        background-color: white;
        padding-block: 2px;
        padding-left: 95px;
        font-size: 2em;
      }

      p {
        padding-left: 180px;
        font-size: .5em;
        background-color: white;
      }
    }



    .readmore {
      grid-column: 5 / 8;
      grid-row: 1 / 2;
      background-image: url('../img/about-read-img.svg');
      background-size: x-large;
      background-position: 80% 65%;
      background-repeat: no-repeat;



      /* Postion the a in the center */


      display: grid;
      justify-content: center;
      align-items: center;






      a {

        display: block;
        margin-bottom: 80%;

      }



    }


    .imagebox2 {
      grid-column: 3 / 4;
      grid-row: 3 / 6;
      position: relative
    }

    .imagebox2::after {
      content: "";
      background-image: url('../img/About-left-bckgv3.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: right bottom;
      display: block;
      width: 1200px;
      height: 1200px;
      position: absolute;
      bottom: 30px;
      left: -780px;
      z-index: -1;
    }


    .imagebox1 {
      grid-column: 6 / 9;
      grid-row: 2 / 4;
    }

    @media (width >=768px) {
      .imagebox1::after {
        content: "";
        background-image: url('../img/about-triangle-bckgv2.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: right bottom;
        display: block;
        width: 45vw;
        height: 45vw;
        position: absolute;
        bottom: -67vw;
        left: 45vw;
        z-index: -1;
      }
    }

  }




}

/* OUR WORKS SECTION STYLING */

@media (width >=768px) {

  .work {
    padding-top: 0;
    padding-bottom: 0;
  }


  .work-grid {
    display: grid;
    grid-template-columns: 35fr 15fr 15fr 40fr;
    grid-template-rows: auto 1fr;
    height: -300px;
    gap: 1em;
  }

  .textbox {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
    font-size: xx-large;
    padding-left: 2%;
  }

  .imagebox3 {
    grid-column: 4/ 5;
    grid-row: 2/ 3;
    padding-left: 5%;
    z-index: ;

    p {
      margin-bottom: 0;
      margin-top: -10px;
    }

  }

  .background-arrow {
    margin-left: -26%;
    margin-top: -22%;
    position: relative;
    z-index: -1;
  }




  .imagebox1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;


    p {
      margin-top: -10px;
    }

    .button-1 {
      width: 60%;
      height: 9%;
      margin-top: 380px;
      font-size: 1.5em;
    }

  }


  .imagebox2 {
    grid-column: 2 / 4;
    grid-row: 1 / 3;

    .powder-room {
      max-width: 35%;
    }

    .work-img-bckg {
      width: 150%;
      z-index: -1;
    }

    .work-img-text {
      top: 40%;
      left: 25%;
    }

    .rear-exit {
      padding-top: 15%
    }

    p {
      margin-top: -10px;
    }


  }


  .work-img-bckg {
    position: relative;
    left: -20%;

    p {
      position: absolute;
      top: 15%;
      left: 30%
    }




  }

  /* CLIENT BACKGROUND IMAGE */

  @media (width >=768px) {

    .client-container {
      max-width: 1600px;
      margin-inline: auto;
      padding-inline: 4em;
      background-image: url(../img/client-bckg-v3.svg);
      background-repeat: no-repeat;
      background-position: -10% 6%;
      background-size: 100%;

    }

    #client {
      padding-top: 3em;
      padding-bottom: 0;
    }




  }



  /* NEWSLETTER SECTION BUTTON AND TEXT */
  @media (width >=768px) {



    #newsletter {
      padding-top: 0;
      padding-bottom: 0;
    }

    #newsletter .one-third {
      text-align: left;
    }

    #newsletter h3,
    #newsletter h4,
    #newsletter p {
      text-align: left;
      margin-inline: 0;
    }


    #newsletter .button {
      display: block;
      width: fit-content;
      margin-inline: auto;
      margin-top: .09em;
    }

    /* TITLE CENTER THING */
    #newsletter h2 {
      text-align: center;
      font-size: 5em;
    }
  }

  /* ATTEMPTING TO CENTER THE NEWSLETTER SECTION */

  @media (width >=768px) {
    .newsletter {
      display: grid;
      text-align: center;
    }

    #newsletter h2 {
      text-align: center;
      font-size: 7em;
    }

    #newsletter h3 {
      text-align: center;
    }

    #newsletter p {
      margin-inline: auto;
    }

    #newsletter .button {
      place-items: center;
      justify-content: center;
    }

    #newsletter h4 {
      text-align: center;
    }
  }

  @media (width < 768px) {
    #newsletter .row>* {
      margin-block-end: 6em;
    }
  }




  /* Site Footer thing */

  @media (width >=768px) {

    .footer-line {
      display: block;
      width: 100%;
      height: auto;
    }

    /* ── OUTER FOOTER ── */
    .footer {
      width: 100%;
      background: #fff;
      color: #111;
      padding: 60px 0 48px 0;
    }


    /* ── LEFT 1/3 WITH LETS WORK  ── */
    .footer-col-left {




      h1 {
        font-size: clamp(3em, 5vw, 5vw);
      }



    }


    /* ── MIDDLE 1/3 ARROW & LINKS ── */
    .footer-col-mid {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 40px 32px;
    }

    .arrow-img {
      display: flex;
      align-items: center;
      justify-content: center;
      padding-top: 10px;
    }

    /* ── SMALLER DIV GRID ── */
    .footer-inner-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      width: 100%;
      padding-top: 30px;
      gap: 8px;
      bottom: 0;
    }

    .inner-col-left {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }

    .inner-col-right {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }

    .inner-col-logo {
      display: flex;
      align-items: center;
      justify-content: center;
    }



    /* ── RIGHT 1/3 EMAIL BUTTON ── */
    .footer-col-right {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 48px;
    }

    .button-footer {
      width: 200%;
      margin-left: -120px;
      margin-right: -80px;
      font-size: 1em;
      border-radius: 0%;
      display: block;
      flex-grow: 1;
      background-color: rgb(170, 176, 182);
    }

  }

}