/*
Theme Name: Elegant Wise Style
Theme URI: https://elegantwisestyle.com/
Author: Elegant Wise Style
Description: A lightweight, Elementor-friendly theme with a refined editorial header and footer.
Version: 1.0.1
Text Domain: elegant-wise-style
*/

:root {
  --ews-background: #faf8f4;
  --ews-surface: #f5f1eb;
  --ews-ink: #2d2925;
  --ews-muted: #6f675f;
  --ews-line: #d9d0c6;
  --ews-content: 1320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ews-background);
  color: var(--ews-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ews-muted);
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(250, 248, 244, 0.98);
  border-bottom: 1px solid var(--ews-line);
}

.header-inner {
  width: min(calc(100% - 72px), var(--ews-content));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.site-logo {
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-navigation ul,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.primary-navigation a,
.footer-heading {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--ews-line);
  background: transparent;
  color: var(--ews-ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-main {
  min-height: 48vh;
}

.standard-page {
  width: min(calc(100% - 48px), 900px);
  margin: 0 auto;
  padding: 80px 0;
}

.standard-page h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 400;
}

.site-footer {
  background: var(--ews-surface);
  border-top: 1px solid var(--ews-line);
  padding: 72px 0 24px;
}

.footer-inner {
  width: min(calc(100% - 72px), var(--ews-content));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.8fr 0.8fr 0.8fr;
  gap: clamp(40px, 7vw, 110px);
  padding-bottom: 64px;
}

.footer-brand-name {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-accent {
  width: 64px;
  height: 2px;
  margin: 24px 0 26px;
  background: var(--ews-line);
}

.footer-description {
  max-width: 340px;
  margin: 0;
  color: var(--ews-ink);
}

.footer-heading {
  margin: 5px 0 24px;
  font-family: inherit;
  font-weight: 400;
}

.footer-links {
  display: grid;
  gap: 14px;
}

.footer-links a {
  display: inline-block;
}

.footer-bottom {
  border-top: 1px solid var(--ews-line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-legal li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  margin-right: 18px;
  vertical-align: middle;
  background: var(--ews-line);
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 92px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    background: var(--ews-background);
    border-bottom: 1px solid var(--ews-line);
    padding: 24px 36px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 36px), var(--ews-content));
  }

  .site-logo {
    font-size: 20px;
    letter-spacing: 0.15em;
    white-space: normal;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-bottom: 44px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
