:root {
    --text: #171717;
    --paper: #f5f4ef;
    --max-width: 1770px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: 'Cormorant', sans-serif;
	font-weight: 500;
    line-height: 1.5;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/Quicksand_300.woff2') format('woff2');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Quicksand.woff2') format('woff2');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Quicksand-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/cormorant.regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/cormorant.medium.woff2') format('woff2');
}


/* -------------------------------------------------
   Header
   The original header is part of the normal page
   flow, so the hero image begins BELOW it.
-------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 10;
    width: 100%;
	height: clamp(142px, 8.2vw, 205px);
    background: rgba(247, 246, 241, 0.98);
}

.header-inner {
    height: 100%;
    width: 100%;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo {
	flex: 0 0 clamp(135px, 8.2vw, 205px);
    display: block;
}

.logo img {
    width: clamp(135px, 8.2vw, 200px);
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(23px, 1.8vw, 35px); 
    margin-left: clamp(25px, 1.75vw, 35px);
}

.site-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
	min-width: clamp(16px, 13vw, 300px);
    height: 45px;
    padding: 8px 0 6px;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Cormorant', sans-serif;
    font-size: clamp(14px, 0.98vw, 20px);
    letter-spacing: 0.32em;
    line-height: 1;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

/* -------------------------------------------------
   Hero
   The source image is 1904 x 869. Keeping the
   image at width:100% preserves the original crop
   instead of forcing it into a shorter box.
-------------------------------------------------- */

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero > img, .image-section > img  {
    width: 100%;
    height: auto;
}

.hero-title {
    position: absolute;
    left: 2.5%;
    bottom: 10%;
}

.hero-title h1 {
    margin: 0;
    color: white;
    font-family: 'Cormorant', sans-serif;
	font-weight: 500;
    font-size: clamp(48px, 4.25vw, 76px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

/* General headings */

h2 {
    margin-top: 0;
    font-family: 'Cormorant', sans-serif;
    line-height: 1.05;
	text-align:center;
}

.content {
    width: 60vw;
	max-width: 1700px;
    margin: 0 auto;
	text-align: justify;
}

/* Philosophy */

.text-section, .clients{
    padding: 45px 0 45px;
    background: var(--paper);
}

.text-section p {
    width: 60vw;
	max-width: 1700px;
	font-size: clamp(20px, 1.35vw, 27px);
    line-height: 1.5;
    margin-bottom: 20px;
}

.button {
    display: inline-block;
	padding: clamp(13px, 1vw, 21px) clamp(25px, 1.7vw, 40px);
    border: 1px solid var(--text);
    text-decoration: none;
    font-size: clamp(15px, 1vw, 20px);
    transition: .2s ease;
}

.button:hover {
    background: var(--text);
    color: white;
}

/* Image section */

.image-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.button.light {
    color: white;
    border-color: white;
}

.button.light:hover {
    background: white;
    color: var(--text);
}

/* Clients */

.text-section h2, .clients h2 {
    margin-bottom: 22px;
    font-size: clamp(30px, 3.3vw, 60px);
}

.client-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2.5vw;
	width: 60vw;
	max-width: 1700px;
	text-align:left; !important;
}

.client-list span {
    font-size: clamp(17px, 1.25vw, 24px);
    letter-spacing: .06em;
}

/* Footer */

.site-footer {
    background: #1b1c1b;
    color: white;
	padding: clamp(30px, 3vw, 45px) 0;
}

.footer-inner {
    width: min(var(--max-width), calc(100% - 100px));
    margin: 0 auto;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 1.3vw, 25px);
    font-size: clamp(14px, 1vw, 20px);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(15px, 1.3vw, 25px);
    margin-top: 15px;
    font-size: clamp(12px, 0.85vw, 16px);
    opacity: .75;
}

.site-footer a { text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-links-left {
    flex: 1;
}

.footer-logo {
    flex: 0 0 clamp(100px, 7.1vw, 150px);
    display: block;
    margin-left: 50px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Normal desktop navigation */

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #bbb;
    z-index: 1;
}

.site-nav a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #bb0000;
	z-index: 2;
    transition: width 0.25s ease;
}

.site-nav a:hover::before {
    width: 100%;
}

.site-nav a.active::after {
    background-color: #000000;
}

.site-nav a.active::before {
    display: none;
}

/* Smaller screens */

@media (max-width: 1200px) {
    .header-inner {
        padding: 0 25px;
    }
    .client-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .site-header { height: 95px; }

    .header-inner {
        padding: 0 20px;
        justify-content: space-between;
    }

    .logo {
        flex-basis: 88px;
        width: 88px;
    }

    .logo img {
        width: 88px;
        height: 72px;
    }

    .menu-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: 88px;
        left: 0;
        width: 100%;
        margin-left: 0;
        padding: 20px;
        background: var(--paper);
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .site-nav.open { display: flex; }

    .site-nav a {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
        height: 42px;
        font-size: 15px;
        letter-spacing: .22em;
		text-align: left;
    }
	
	.hero {
  	    height: clamp(300px, 75vw, 400px);
	}

	.hero > img {
 	    width: 100%;
	    height: 100%;
	    object-fit: cover;
 	   object-position: center center;
	}

    .hero-title {
        left: 5%;
        bottom: 7%;
    }
	
	.image-section {
	    height: clamp(300px, 75vw, 400px);
	}

	.image-section > img {
	    width: 100%;
	    height: 100%;
	    object-fit: cover;
	    object-position: center center;
	}

    .hero-title h1 {
		font-size: clamp(36px, 7vw, 55px);	
    }
	
	.services-title h1 {
	    transform: translateY(30px);
	}

    .content {
        width: min(100% - 40px, var(--max-width));
    }

    .text-section, .clients { 
	   padding: clamp(35px, 8vw, 55px) 0; 
	 }

    .text-section p {
      width: 100%;
      font-size: 18px;
	}

    .client-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
   	    gap: 12px 30px;
    }

    .footer-inner {
        width: min(100% - 40px, var(--max-width));
    }
	
	.content.narrow {
		width: calc(100% - 40px);
	    margin-left: 20px;
	    margin-right: 20px;
	}
	
	.client-list {
	    width: 100%;
	}
	
	.footer-content {
	    flex-direction: column;
	    align-items: center;
	}

	.footer-links-left {
	    width: 100%;
	}

	.footer-logo {
	    margin-left: 0;
	    margin-top: 30px;
	}
	
	.site-footer nav {
	    flex-wrap: nowrap;
	    justify-content: center;
	    gap: 16px;
	    white-space: nowrap;
	}
	
	.footer-links {
	    flex-wrap: nowrap;
	    justify-content: center;
	    gap: 16px;
	    white-space: nowrap;
	    margin-top: 15px;
	}
	
	.footer-logo {
		flex: 0 0 auto;
	    width: clamp(80px, 26vw, 105px);
	    margin-left: 0;
	    margin-top: 30px;
	}

	.footer-logo img {
	    width: 100%;
	    height: auto;
	}	
}
