/* 
  Theme I-Godin
*/

/* -------------------------------
|  Base
--------------------------------*/
:root {
  /* --gutter: 16px;
  --gutter-md: 24px;
  --gutter-lg: 32px; */

  --section-space: 48px;
  --section-space-md: 72px;
  --section-space-lg: 96px;

  --color-heading: #9A7611;
  --color-text: #212322;
  --color-surface: #F2EEE8;
  --color-border: #D8D0C4;
  --color-gray: #d7d2cb;

  --font-heading: "Montserrat", Arial, Helvetica, sans-serif;
  --font-body: "Nunito Sans", Arial, Helvetica, sans-serif;

  --width-site: 80rem;
  --width-text: 47.5rem;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --gutter-mobile: 1rem;
  --gutter-tablet: 1.5rem;
  --gutter-desktop: 2rem;

  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* -------------------------------
|  Typography
--------------------------------*/
html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}


h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.6em;
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
}

p,
li {
  font-size: 1rem;
}

p,
ul,
ol {
  margin: 0;
}

p {
  text-wrap: pretty;
}

p + p {
  margin-top: 1.2em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  body {
    font-size: 1.0625rem; /* 17px */
  }
}

/* -------------------------------
|  Utilities
--------------------------------*/
.u-align--center {
  align-items: center;
}

.u-justify--space-b {
  justify-content: space-between;
}

.u-text--accent {
  font-weight: bold;
  font-size: 1.1rem;
}

.u-color--heading {
  color: var(--color-heading);
}

.u-link,
.u-link:visited {
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.u-link:hover {
  color: var(--color-heading);
}


/* -------------------------------
|  Objects
--------------------------------*/

.o-wrapper {
  width: min(100% - (var(--gutter-mobile) * 2), var(--width-site));
  margin-inline: auto;
}

.o-wrapper__text {
  width: calc((100% / 4) * 3);
}

@media (max-width: 64rem) {

  .o-wrapper {
    width: calc(100% - (var(--gutter-mobile) * 4)); 
  }
  .o-wrapper__text {
    width: 100%;
  }
}

.o-section {
  padding: var(--space-2xl) 0;
}

.o-section__title {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.o-section__title:after {
  content: '';
  height: 2px;
  flex: 1;
  background: var(--color-gray);
}

@media (max-width: 48rem) {
  .o-section__title {
    flex-direction: column;
    align-items: flex-start;
  }
  .o-section__title::after {
    width: 100%;
    flex: none;
  }
}

.o-grid {
  display: grid;
  gap: var(--space-xl);
}

.o-grid--split {
  display: grid;
  gap: var(--space-xl);
}

.o-grid--contact {
  display: grid;
  gap: var(--space-lg);
}

.o-media__container {
  overflow: hidden;
  height: 100%;
}

.o-media__container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}



/* Media Queries */
@media (min-width: 48rem) {

  .o-section {
    padding: var(--space-3xl) 0;
  }
}

@media (min-width: 80rem) {
  /* .o-wrapper {
    width: min(100% - (var(--gutter-desktop) * 2), var(--width-site));
  } */

  .o-section {
    padding: var(--space-4xl) 0 var(--space-3xl);
  }

}

/* -------------------------------
|  Components
--------------------------------*/

/* --- CTA --- */
.c-cta {
  color: var(--color-heading);
  border: 1px solid var(--color-heading);
  padding: 1rem;
  border-radius: 0.5em;
  cursor: pointer;
  transition: var(--transition);
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  background-color: var(--color-surface);
}
.c-cta:visited {
  color: var(--color-heading);
}
.c-cta:hover {
  background-color: var(--color-heading);
  color: white;
}

/* --- Header --- */
.c-header {
  border-bottom: 2px solid var(--color-gray);
}

.c-header__banner {
  display: flex;
  height: var(--section-space-lg);
  justify-content: space-between;
  align-items: center;
}

.c-header .o-media__container img {
  width: auto;
}

@media (max-width: 48rem) {
  .c-header .o-media__container {
    max-width: 6.5rem;
    height: auto;
  }
  .o-media__container img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .c-header .c-cta {
    padding: 0.5rem;
    white-space: nowrap;
  }
}


/* --- Intro --- */
.c-intro__wrapper {
  display: flex;
  gap: var(--space-3xl);
}

.c-intro .o-media__container { 
  aspect-ratio: 1/1;
}

.c-intro .o-media__container img {
  border-radius: 0.5em;
  border: 2px solid var(--color-gray);
}

@media (max-width: 64rem) {
  .c-intro__wrapper {
    gap: var(--space-2xl);
  }
}

@media (max-width: 48rem) {
  .c-intro__wrapper  {
    flex-direction: column-reverse;
  }
}


/* ---Content --- */
.c-content {
  margin-top: var(--space-2xl);
  p + p {
    margin-top: var(--space-xl)
  }
}


/* ---Contacts --- */
.c-contacts__wrapper {
  display: flex;
  gap: var(--space-4xl);
  flex-wrap: wrap;
}


.c-contacts .o-section__title {
  margin-bottom: var(--space-lg);
}

.c-schedule p {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
}

.c-schedule__time {
  padding-left: var(--space-xl);
}

@media (max-width: 64rem) {
  .c-contacts__wrapper {
    gap: var(--space-2xl);
  }
  .c-contacts__wrapper div {
    width: 100%;
  }
}


/* ---Footer --- */
.c-footer {
  margin-top: var(--space-4xl);
  padding: var(--space-lg);
}

.c-footer span {
  white-space: nowrap;
}

@media (max-width: 48rem) {
  .c-footer .o-wrapper {
    margin: 0;
  }
}