/* ============================================================
   Millyon Limited — Static site stylesheet
   Replicates WordPress Twenty Seventeen theme exactly
   ============================================================ */

@import url('../fonts/fonts.css');

/* ====================
   Reset / Base
   ==================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.66;
  color: #333;
  background: #fff;
  margin: 0;
  padding: 0;
  word-wrap: break-word;
}

@media screen and (min-width: 480px) {
  body {
    font-size: 14px;
  }
}

a {
  color: #222;
  text-decoration: none;
}

a:visited {
  color: #666;
}

a:hover,
a:focus {
  color: #000;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin: 0 0 1.5em;
}

ul, ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.4em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.75em;
  clear: both;
}

/* Mobile font sizes (base 16px root) */
h1 { font-size: 18px; }
h2 { font-size: 15px; color: #666; }
h3 { font-size: 14px; color: #333; }
h4 { font-size: 12px; }
h5 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.15em; color: #767676; }

/* Tablet / desktop (30em = 480px) */
@media screen and (min-width: 480px) {
  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  h3 { font-size: 16px; }
}

/* ====================
   Site / Layout
   ==================== */

#page {
  margin: 0;
  padding: 0;
}

.wrap {
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  padding-left: 2em;
  padding-right: 2em;
}

@media screen and (min-width: 48em) {
  .wrap {
    max-width: 1000px;
    padding-left: 3em;
    padding-right: 3em;
  }
}

/* ====================
   Header
   ==================== */

.site-header {
  position: relative;
}

/* --- Custom header image area ---
   The background image is fixed (background-attachment: fixed) so it
   stays static while the page scrolls over it, exactly like the original. */
.custom-header {
  position: relative;
  background-image: url('../images/header.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

/* Gradient overlay darkens toward the bottom where the branding sits */
.has-header-image .custom-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 75%);
  z-index: 1;
  pointer-events: none;
}

/* Hide the <img> element — image is now handled via CSS background */
.custom-header-media {
  display: none;
}

/* --- Site branding (title + tagline) --- */
.site-branding {
  padding: 1em 0;
  position: relative;
  z-index: 3;
}

@media screen and (min-width: 480px) {
  .site-branding {
    padding: 3em 0;
  }
}

/* On desktop, anchor the branding to the BOTTOM of the custom-header
   so it sits above the nav bar, matching the original Twenty Seventeen layout */
@media screen and (min-width: 768px) {
  .home .custom-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .home .site-branding {
    padding-bottom: 2em;
  }
}

.site-branding-text {
  /* centered within wrap */
}

.site-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
  padding: 0;
  clear: none;
  color: #222;
}

.site-title a {
  color: #222;
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: none;
  color: #767676;
}

/* With header image, title and description go white */
.has-header-image .site-title a,
.has-header-image .site-title {
  color: #fff;
}

.has-header-image .site-title a:hover {
  color: rgba(255,255,255,0.8);
}

.site-description {
  color: #666;
  font-size: 10px;
  margin-bottom: 0;
  font-weight: 400;
}

.has-header-image .site-description {
  color: rgba(255, 255, 255, 0.7);
}

@media screen and (min-width: 768px) {
  .site-title {
    font-size: 27px;
  }
}

/* Mobile: minimum visible image height */
.custom-header {
  min-height: 200px;
}

@media screen and (min-width: 480px) {
  .custom-header {
    min-height: 300px;
  }
}

@media screen and (min-width: 768px) {
  /* Homepage: viewport height minus nav bar so the nav is visible at
     the bottom of the initial view, then sticks as you scroll. */
  .home .custom-header {
    height: calc(100vh - 53px);
    min-height: 400px;
  }

  /* Inner pages: shorter header */
  .page:not(.home) .custom-header {
    height: 300px;
  }
}

/* Scroll-down link */
.menu-scroll-down {
  display: block;
  position: absolute;
  bottom: 1.5em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  line-height: 1;
}

.menu-scroll-down:hover {
  color: #fff;
  text-decoration: none;
}

.menu-scroll-down svg {
  display: block;
  width: 30px;
  height: 30px;
}

/* ====================
   Navigation
   ==================== */

.navigation-top {
  background: #fff;
  border-bottom: 1px solid #eee;
  border-top: 1px solid #eee;
  font-size: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

/* Mobile: toggle button */
.menu-toggle {
  display: block;
  background: transparent;
  border: none;
  color: #222;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 14px 32px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-toggle:hover {
  color: #767676;
}

/* Nav ul */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none; /* hidden on mobile by default, toggled by JS */
}

.nav-menu.toggled-on {
  display: block;
  padding-bottom: 1em;
}

.nav-menu li {
  margin: 0;
  border-top: 1px solid #eee;
}

.nav-menu li a {
  color: #222;
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 14px 32px;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  color: #767676;
}

.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
  color: #767676;
}

/* On desktop: show nav horizontally, hide toggle */
@media screen and (min-width: 48em) {
  .menu-toggle {
    display: none;
  }

  .nav-menu {
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
  }

  .nav-menu li {
    border-top: none;
  }

  .nav-menu li a {
    padding: 14px 20px;
    font-size: 11px;
  }

  .wrap > .nav-menu {
    /* first and last items get less padding */
  }

  .nav-menu > li:first-child > a {
    padding-left: 0;
  }
}

@media screen and (min-width: 48em) {
  .navigation-top {
    padding-bottom: 8px;
  }
}

@media screen and (min-width: 67em) {
  .navigation-top .wrap {
    padding-top: 0.75em;
    padding-bottom: 0.75em;
  }
}

/* ====================
   Site Content
   ==================== */

.site-content {
  padding: 2em 0 0;
}

.content-area {
  /* full width, no sidebar */
}

.site-main {
  /* main article container */
}

/* ====================
   Entry / Article
   ==================== */

.entry-header {
  padding: 1em 0;
}

.entry-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.25em;
  color: #222;
}

@media screen and (min-width: 768px) {
  .entry-title {
    font-size: 27px;
  }
}

.entry-content {
  /* Content area */
}

/* ====================
   Two-column layout
   entry-header (title) left 36%, entry-content right 58%
   Matches Twenty Seventeen body.page-two-column behaviour
   ==================== */

@media screen and (min-width: 768px) {
  body.page-two-column article > .wrap {
    display: flow-root; /* clearfix for the floated columns */
  }

  body.page-two-column #primary .entry-header {
    float: left;
    width: 36%;
    padding-top: 0;
    padding-right: 2em;
  }

  body.page-two-column #primary .entry-content {
    float: right;
    width: 58%;
  }
}

.entry-content h2 {
  font-size: 16px;
  color: #666;
  margin-top: 1.5em;
}

@media screen and (min-width: 480px) {
  .entry-content h2 {
    font-size: 20px;
  }
}

.entry-content h3 {
  font-size: 14px;
  color: #333;
  margin-top: 1.5em;
}

@media screen and (min-width: 480px) {
  .entry-content h3 {
    font-size: 16px;
  }
}

.entry-content .wp-block-image {
  margin: 1.5em 0;
}

.entry-content .wp-block-image img,
.entry-content img {
  max-width: 100%;
  height: auto;
}

/* Centered image block */
.entry-content figure.aligncenter,
.entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Homepage logo */
.entry-content .site-logo-block {
  text-align: center;
  margin: 0 auto 2em;
}

.entry-content .site-logo-block img {
  margin: 0 auto;
  max-width: 300px;
}

/* ====================
   Footer
   ==================== */

.site-footer {
  border-top: 1px solid #eee;
  padding: 2em 0;
  margin-top: 3em;
}

.site-footer .wrap {
  display: -webkit-flex;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Social navigation */
.social-navigation {
  font-size: 12px;
  margin-bottom: 1em;
}

.social-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
}

.social-navigation ul li {
  margin: 0;
}

.social-navigation ul li a {
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  text-decoration: none;
  -webkit-transition: opacity 0.15s;
  transition: opacity 0.15s;
}

.social-navigation ul li a:hover,
.social-navigation ul li a:focus {
  opacity: 0.7;
  text-decoration: none;
}

/* Site info */
.site-info {
  color: #767676;
  font-size: 10px;
}

.site-info a {
  color: #767676;
}

.site-info a:hover {
  color: #333;
}

/* ====================
   Contact page
   ==================== */

.contact-list {
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 1.25em;
}

.contact-list .contact-label {
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  display: block;
  margin-bottom: 0.2em;
}

/* ====================
   Privacy policy
   ==================== */

.privacy-section {
  margin-bottom: 2em;
}

.privacy-section h2 {
  font-size: 14px;
  color: #333;
  margin-bottom: 0.75em;
  margin-top: 0;
  font-weight: 800;
}

.policy-last-updated {
  font-style: italic;
  color: #767676;
  font-size: 10px;
  margin-top: 2em;
}

/* ====================
   Accessibility / screen reader
   ==================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal;
}

.skip-link {
  position: absolute;
  top: -9999em;
  left: -9999em;
}

.skip-link:focus {
  top: 6px;
  left: 6px;
  background: #fff;
  padding: 0.5em 1em;
  z-index: 9999;
}
