:root{
  /* colors */

  --color-bg-1: #FAF8F4;
  --color-bg-2: #F0EAD8;
  --color-bg-3: #CADEB6;
  --color-bg-4: #E8F2EC;
  --primary-color: #1F3D22;
  --secondary-color: #4A5E4C;
  --accent-color: #3D7A45;
  --caption-color: #7A8C7C;
  --white-text: #FAF8F4;
  
  /* Fonts */

  --font-heading: 'Cormorant Garamond', 'serif';
  --font-body: 'DM Sans', sans-serif;

  /* Font Size */

  --text-hero: 78px;
  --text-heading: 54px;
  --text-subheading: 20px;
  --text-herosub: 22px;
  --text-title: 40px;
  --text-body: 18px;
  --text-label: 16px;
  --button-text: 14px;
  --card-body: 12px;
  --card-label: 10px;
  --cta-text: 48px;
  --footer-title: 28px;
  --caption: 13px;
  --card-title: 46px;
  --smallest-size: 8px;
  --text-mobile-heading: 30px;
  /* Font Weight */

  --regular: 400;
  --extralight: 200;
  --light: 300;
  --medium: 500;
  --semibold: 600;
  --bold: 700; 

  /* Line Height */
  --heading-height: 0.85;
  --regular-height: 1.4;
  --subheading-height: 1.2;

  /* Letter Spacing */
  --hero-letter: -0.03em;
  --regular-spacing: 0.01em;
  --label-spacing: 0.03em;
  --btn-letter-spacing: 0.10em;
  --title-letter-spacing: 0.05em;
  --footer-spacing: 0.20em;

  /* Border Radius */
  --nav-btn-raidus: 8px;
  --btn-radius: 12px;
  --card-radius: 18px;
  --small-card-radius: 14px;

}

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  scroll-behavior: smooth;
}

html, body{
  overflow-x: hidden;
  overflow-y: auto;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-1);
}

main {
  display: block;
}

h1 {
  font-size: inherit;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
  max-width: 100%;
  display: block;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

button,
input { /* 1 */
  overflow: visible;
}

button,
select { /* 1 */
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: none;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: none; /* 1 */
  outline-offset: -2px; /* 2 */
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/* Site header and Nav bar */

.site-header{
  border-bottom: 1px solid var(--accent-color);
  background-color: var(--color-bg-1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 99;
}

.nav-logo{
  padding: 0.4em 0;
}

.nav-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

.site-nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0rem 8rem 0;
  overflow: visible;
}

.nav-links{
  display: flex;
  list-style: none;
  padding: 0;
  gap: 2.5rem;
  font-family: var(--font-body), sans-serif;
  font-size: var(--text-label);
  font-weight:var(--extralight);

}

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

.nav-cta{
  border: 1px solid var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 9rem;
  height: 2.5rem;
  text-decoration: none;
  color: var(--accent-color);
  border-radius: var(--nav-btn-raidus);
  font-size: 0.6875rem;
  font-family: var(--font-body), sans-serif;
  font-weight: var(--bold);
  letter-spacing: 0.1em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  transition: transform 0.2s ease-out;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -4px; 
  left: 0;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a:active {
  transform: scale(1.10);
}

.nav-cta:hover {
  transform: scale(1.10);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.30);
  background-color: var(--accent-color);
  color: var(--color-bg-1);
}

.nav-cta:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.20);
}

.nav-hamburger{
  display: none;
}


 /* Footer Section */

footer{
  background-image: url(assets/bg-footer.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 535px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 8rem;
}

.footer-column {
  display: flex;
  flex-direction: row;
  gap: 5rem;
}

.footer-inner{
  display: flex;
  align-items: flex-start;
  justify-content: space-evenly;
  margin-top: 2rem;
  gap: 12rem;
}


.footer-brand{
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  width: 280px;
}

.footer-title{
  font-family: var(--font-heading);
  font-weight: var(--regular);
  font-size: var(--footer-title);
  line-height: var(--heading-height);
  letter-spacing: var(--hero-letter);
  color: var(--primary-color);
  
}

.footer-brand img{
  width: 120px;
  height: 120px;
  object-fit: contain
}

.footer-contact{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-body);
  font-weight: var(--regular);
  font-size: var(--text-body);
  line-height: var(--subheading-height);
  letter-spacing: var(--regular-spacing);
  color: var(--secondary-color);
}

.footer-contact a{
  text-decoration: none;
  color: var(--secondary-color);
}

.footer-links{
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: var(--regular);
  font-size: var(--text-body);
  line-height: var(--subheading-height);
  letter-spacing: var(--regular-spacing);
  color: var(--secondary-color);
}

.footer-links h4{
  margin-bottom: 1.5rem;
}

.footer-links nav{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  
}

.footer-links nav a{
  text-decoration: none;
  color: var(--secondary-color);
}

.footer-social{
  font-family: var(--font-body);
  font-weight: var(--regular);
  font-size: var(--text-body);
  line-height: var(--subheading-height);
  letter-spacing: var(--regular-spacing);
  color: var(--secondary-color);
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.footer-social .social-links{
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
}

.social-links img {
    width: 20px;
    height: 20px;
}

.footer-copyright{
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: var(--regular);
  font-size: var(--caption);
  line-height: var(--heading-height);
  letter-spacing: var(--regular-spacing);
  color: var(--caption-color);
  text-align: center;
  margin-top: 3rem;
  width: 100%;
}

.footer-contact h4,
.footer-links h4,
.footer-social h4 {
    font-family: var(--font-body);
    font-weight: var(--semibold);
    font-size: var(--text-label);
    color: var(--primary-color);
}

/* Media Qurey */

  .nav-links.nav-open {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-1);
  padding: 1.5rem;
  gap: 1.5rem;
  border-bottom: 2px solid var(--accent-color);
  border-top: 2px solid var(--accent-color);
}

@media(max-width: 768px){
  .site-nav{
    margin: 0 1.5rem;
  }

  .nav-logo img {
  width: 60px;
  height: 60px;
  }
  
  .nav-links{
    display: none;
  }

  .nav-cta{
    width: 6rem;
    height: 2rem;
    font-size: 8px;
  }

  .nav-actions{
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-hamburger{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
  }

  .nav-hamburger span{
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
  }


  /* footer */

  footer {
  padding: 12rem 2rem 3rem 2rem;
  justify-content: flex-start;
  min-height: unset;
  height: auto;
  background-size: 100% 100%;
  }

.footer-inner {
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  width: 100%;
  align-items: stretch;
  }

.footer-brand {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 100%;
  }

.footer-brand img {
  width: 70px;
  height: 70px;
  order: -1;
  }

.footer-title {
  font-size: var(--text-subheading);
  }

.footer-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  }

.footer-contact h4{
  font-size: var(--button-text);
  }

.footer-contact address {
  font-size: 10px;
  }

.footer-contact,
.footer-contact a {
  font-size: 10px;
  }

.footer-links h4{
  font-size: var(--button-text);
  margin-bottom: 1rem;
  }

.footer-links{
  font-size: var(--card-label);
  }

.footer-social {
  grid-column: 1 / -1;
  align-items: center;
  font-size: var(--button-text);
  }

.footer-contact {
  font-size: var(--card-body);
  gap: 0.75rem;
  }

.footer-links nav {
  gap: 0.75rem;
  }

.footer-copyright {
  margin-top: 1.5rem;
  }

.footer-social .social-links {
  justify-content: center;
  width: 100%;
  }
}
