﻿/*
Theme Name: cdm
Theme URI: https://example.com/
Author: CDM
Description: Minimal classic theme with custom PHP header; page content handled by blocks.
Version: 1.0.0
Text Domain: cdm
*/

@font-face {
  font-family: "Avenir LT W01 35 Light";
  src: url("fonts/avenir-lt-w01_35-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

body {
  margin: 0;
  font-family: "Avenir LT W01 35 Light", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: #111;
  background: #fff;
}

body.admin-bar {
  padding-top: 32px;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 783px) {
  body.admin-bar {
    padding-top: 46px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

}

.cdm-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 2px  rgba(0, 0, 0, 0.3);
  color: #000;
}

.site-header .cdm-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 238px;
  width: 1160px;
  margin: 0 auto;
  padding: 0;
}

.site-logo-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  display: block;
  width: 522px;
  height: auto;
}

.site-header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  z-index: 1001;
  background: #fff;
  box-shadow: -3px 0 30px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 72px 16px 24px 40px;
  transform: translateX(-100%);
  transition: transform 200ms ease;
}

body.menu-open .site-header-nav {
  transform: translateX(0);
}

.site-header-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-top: 60px;
}

.site-header-menu a {
  color: inherit;
  text-decoration: none;
  font-size: 27px;
  font-weight: 700;
}

.site-header-menu a.is-active,
.site-header-menu .current-menu-item > a,
.site-header-menu .current_page_item > a {
  color: rgb(213, 172, 41);
}

.menu-toggle {
  position: absolute;
  left: 24px;
  top: 30px;
  width: 56px;
  height: 56px;
  border: 0;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #000;
  width: calc(100% + 2px);
  margin-left: -1px;
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  border: 0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.menu-close span {
  position: absolute;
  width: 30px;
  height: 2px;
  background: #000;
}

.menu-close span:first-child {
  transform: rotate(45deg);
}

.menu-close span:last-child {
  transform: rotate(-45deg);
}

.site-header-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1002;
}

.site-header-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
}

.site-header-logos img {
  display: block;
  width: 36px;
  height: 36px;
}

.site-main {
  padding: 262px 0 56px;
}

/* Let full-width blocks breathe */
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.alignwide {
  max-width: min(90vw, 1400px);
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 1px solid #e2ddd3;
  padding: 15px 0;
  font-size: 14px;
  color: #000;
  text-align: center;
}
