/* ====================================
   UNBLOCK ENGLISH — CORE DESIGN SYSTEM
==================================== */

/* ===== COLOR SYSTEM ===== */
:root {
  --bg: #F7F7F6;
  --text: #181818;
  --muted: #6A6A6A;
  --border: #E6E6E3;
  --accent: #223247;
  --accent-hover: #162331;
  --white: #ffffff;
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* ===== GRID & LAYOUT ===== */
.container {
  max-width: 1000px;
  margin-left: 12%; /* Editorial asymmetrical layout */
  margin-right: auto;
  padding-right: 40px;
}

section {
  padding: 120px 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2 {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 0 0 32px 0;
}

h1 {
  font-size: 40px;
  line-height: 1.2;
  max-width: 700px;
}

h2 {
  font-size: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  display: inline-block;
  margin-bottom: 40px;
}

p {
  font-size: 16px;
  max-width: 640px;
  margin-bottom: 24px;
}

.statement {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 40px 0;
}

/* ===== NAVIGATION ===== */
.navbar {
  padding: 40px 0;
}

.logo {
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 14px;
  text-transform: uppercase;
}

.nav {
  margin-top: 20px;
}

.nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-right: 32px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

/* ===== LISTS (The Audit Look) ===== */
ul {
  list-style: none;
  padding-left: 0;
}

li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  max-width: 640px;
  transition: transform 0.2s ease;
}

li:hover {
  transform: translateX(5px);
}

li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ===== CTA (Quiet Luxury Style) ===== */
.cta {
  display: inline-block;
  margin-top: 36px;
  padding: 16px 32px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.cta:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(34, 50, 71, 0.1);
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 140px 0 100px;
  border-top: 1px solid var(--border);
}

.footer-name {
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 14px;
  margin-bottom: 24px;
}

.footer-line {
  font-size: 14px;
  margin-bottom: 24px;
}

.footer-small {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

/* ===== MOBILE RESPONSIVENESS & RE-ORDERING ===== */

@media (max-width: 768px) {
  .container {
    margin-left: 24px;
    margin-right: 24px;
    padding-right: 0;
  }

  section {
    padding: 80px 0;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 20px;
  }

  /* PHOTO ON TOP LOGIC:
     Reverses the flex order in the Professional Context section 
     where inline display:flex was used in the HTML */
  section div[style*="display: flex"] {
    flex-direction: column-reverse !important;
    gap: 32px !important;
  }

  /* Adjusts the Image Container on Mobile */
  section div[style*="flex: 0 0 240px"] {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 280px; 
    margin: 0 auto;
  }

  .nav a {
    display: inline-block;
    margin: 10px 24px 10px 0;
  }
}
