/*
Theme Name: My Twenty Seventeen Clone
Theme URI: https://example.com
Author: Your Name
Description: Twenty Seventeen-style homepage with hero header, white content panels and image strips.
Version: 1.0
Text Domain: my-twentyseventeen-clone
*/

/* ================================
   GLOBAL BASE
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #ffffff;
}

a {
  color: #0073aa;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ================================
   HERO / HEADER MEDIA
   (Big top image with logo + title + tagline)
================================ */

.site-header {
  position: relative;
  z-index: 10;
}

/* Base hero styles shared by front page + inner pages */
.hero-header {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

/* Front page: full-screen, parallax hero */
.hero-frontpage {
  min-height: 100vh;
  height: 100vh;
  background-attachment: fixed;
}

/* Inner pages: short hero banner like Twenty Seventeen */
.hero-inner {
  min-height: 180px;
  height: 180px;
  background-attachment: scroll;
}

/* Dark overlay on hero */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

/* Branding in hero (base positioning) */
.site-branding,
.hero-content {
  position: absolute;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
}

/* Front page branding pushed toward bottom */
.hero-frontpage .hero-content {
  bottom: 40px;
  padding: 0 20px;
  text-align: left;
}

/* Inner pages: branding near top */
.hero-inner .hero-content {
  top: 30px;
  bottom: auto;
  padding: 20px;
  text-align: left;
}

.site-logo img {
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
}

.site-title {
  font-size: 3rem;
  margin: 0 0 10px;
  color: #ffffff;
}

.site-description {
  font-size: 1.4rem;
  margin: 0;
  color: #ffffff;
}

/* ================================
   MAIN MENU BAR (Twenty Seventeen–style)
================================ */

/* Sticky white bar under hero */
.primary-menu {
  position: sticky; /* sticks when it reaches top */
  top: 0;
  z-index: 50;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

/* UL inside nav: centered, constrained width (desktop) */
.primary-menu-list,
.primary-menu ul {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
  list-style: none;
  display: flex; /* horizontal layout */
  flex-direction: row;
  align-items: center;
  gap: 30px;
  height: 60px;
}

/* Reset li so they don't stack full width */
.primary-menu-list li,
.primary-menu ul li {
  margin: 0;
  padding: 0;
  display: block;
}

/* Links: uppercase, spaced, like Twenty Seventeen */
.primary-menu-list a,
.primary-menu ul a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 0.8rem;
  /*  letter-spacing: 0.15em;
 text-transform: uppercase; */
  font-weight: 600;
  color: #222222;
  text-decoration: none;
}

/* Underline animation */
.primary-menu-list a::after,
.primary-menu ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #222222;
  transition: width 0.2s ease;
}

.primary-menu-list a:hover::after,
.primary-menu ul a:hover::after {
  width: 100%;
}

/* Current menu item = permanently underlined */
.primary-menu-list .current-menu-item > a::after,
.primary-menu-list .current_page_item > a::after,
.primary-menu ul .current-menu-item > a::after,
.primary-menu ul .current_page_item > a::after {
  width: 100%;
}

/* ================================
   WHITE CONTENT SECTIONS (PANELS)
   These are the page contents: HOME, ABOUT, etc.
================================ */

.panel-section {
  background: #ffffff;
  padding: 80px 20px;
  border-bottom: 1px rgb(175, 175, 175) solid;
}

.panel-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.panel-title {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 25px;
}

.panel-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444444;
}

/* ================================
   IMAGE STRIPS BETWEEN SECTIONS
   (Featured image of each section)
================================ */

/*
These are full-width images between white sections,
using inline style="background-image:url(...)" from PHP.
*/
.panel-image {
  width: 100%;
  height: 55vh;
  min-height: 320px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* parallax on desktop */
}

/* ================================
   RESPONSIVE / MOBILE
================================ */
@media (max-width: 768px) {
  /* Front page hero stays full height on mobile */
  .hero-frontpage {
    min-height: 100vh;
    height: 100vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
  }

  /* Inner hero remains a short banner */
  .hero-inner {
    min-height: 180px;
    height: 180px;
    background-attachment: scroll;
  }

  .site-title {
    font-size: 2.2rem;
  }

  .site-description {
    font-size: 1.2rem;
  }

  /* Menu: stack & shrink on mobile */
  .primary-menu-list,
  .primary-menu ul {
    max-width: 100%;
    padding: 0 20px;
    flex-direction: column; /* vertical / stacked */
    flex-wrap: nowrap;
    gap: 6px;
    height: auto;
    align-items: flex-start;
  }

  .primary-menu-list a,
  .primary-menu ul a {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    padding: 6px 0;
  }

  .panel-section {
    padding: 60px 15px;
  }

  /* ❌ No parallax for inner panels on mobile */
  .panel-image {
    background-attachment: scroll;
    height: 45vh;
    min-height: 220px;
  }
}

/* ================================
   SMOOTH SCROLL FOR ANCHORS
================================ */
html {
  scroll-behavior: smooth;
}

/* ======================
   MENU TOGGLE (mobile)
====================== */

/* Hide toggle on desktop */
.menu-toggle {
  display: none;
}

/* Mobile toggle button like 2017 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    width: 100%;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #eeeeee;
    padding: 15px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    color: #222;
  }

  /* Start with nav hidden */
  .primary-menu {
    display: none;
  }

  /* When JS toggles the class, show nav */
  .primary-menu.menu-open {
    display: block;
  }

  /* Stack links vertically */
  .primary-menu-list,
  .primary-menu ul {
    max-width: 100%;
    padding: 10px 20px;
    flex-direction: column;
    gap: 10px;
    height: auto;
    align-items: flex-start;
  }
}

/* ================================
   BACK TO TOP (mobile only)
================================ */
#back-to-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 100;
  padding: 10px 14px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 20px;
  background: #222;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Show only on mobile */
@media (max-width: 768px) {
  #back-to-top.show {
    opacity: 0.9;
    pointer-events: auto;
  }
}

/* ============ SIDEBAR ============ */
.sidebar {
  width: 300px;
  padding: 20px;
  background: #f7f7f7;
  border-left: 1px solid #ddd;
}
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid #ddd;
  }
}

/* ============ FOOTER WIDGETS & FOOTER BASE ============ */

.site-footer {
  background: #222;
  color: #fff;
  padding-top: 30px;
}

.footer-widgets {
  display: flex;
  gap: 30px;
  max-width: 960px;
  margin: 0 auto 30px;
  padding: 30px 20px;
  color: #fff;
}

.footer-column {
  flex: 1;
}

.widget-title {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Bottom row: social (left) + © (center) + credit (right) */
.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 20px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

/* Copyright text */
.site-info {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.75;
  text-align: center;
}

/* Credit text (you can customize color etc.) */
.site-credit {
  margin: 0;
  font-size: 0.8rem;
  text-align: right;
  opacity: 0.75;
}
.site-credit a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted #fff;
}
.site-credit a:hover {
  border-bottom: 1px solid #fff;
}

/* ================================
   FOOTER SOCIAL LINKS MENU (ICON STYLE)
================================ */

.footer-social {
  margin: 0;
}

/* UL wrapper */
.social-links-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 10px;
}

/* LI reset */
.social-links-menu li {
  margin: 0;
  padding: 0;
}

/* Each link as a round icon button */
.social-links-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #444;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

/* Hide the visible text – we’ll use icons instead */
.social-links-menu .social-link-text {
  font-size: 0;
}

/* Generic screen-reader-only helper (keeps label accessible) */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

/* Icon base: Dashicons glyph in the middle */
.social-links-menu a::before {
  font-family: "dashicons";
  font-size: 18px;
  line-height: 1;
  speak: none;
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
  text-transform: none;
  content: "\f325"; /* default networking */
}

/* Facebook */
.social-links-menu a[href*="facebook.com"]::before {
  content: "\f304";
}

/* Instagram */
.social-links-menu a[href*="instagram.com"]::before {
  content: "\f12d";
}

/* X (Twitter) – support both twitter.com and x.com */
.social-links-menu a[href*="twitter.com"]::before,
.social-links-menu a[href*="x.com"]::before {
  content: "\f301";
}

/* YouTube */
.social-links-menu a[href*="youtube.com"]::before,
.social-links-menu a[href*="youtu.be"]::before {
  content: "\f236";
}

/* LinkedIn */
.social-links-menu a[href*="linkedin.com"]::before {
  content: "\f18d";
}

/* Hover effect */
.social-links-menu a:hover {
  background: #666;
  transform: translateY(-1px);
}

/* Small tweak for mobile so icons don’t look cramped */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-widgets {
    flex-direction: column;
    gap: 20px;
  }

  .footer-column {
    width: 100%;
  }

  .social-links-menu {
    gap: 8px;
  }

  .social-links-menu a {
    width: 32px;
    height: 32px;
  }

  .site-info,
  .site-credit {
    text-align: center;
  }
}

/* Stack footer widgets on medium screens too */
@media (max-width: 768px) {
  .footer-widgets {
    flex-direction: column;
    gap: 20px;
  }
  .footer-column {
    width: 100%;
  }
}

/* ================================
   PAGES (About, etc.) – Twenty Seventeen style
================================ */

.page-main .page-section {
  background: #ffffff;
  padding: 80px 20px 100px;
}

/* reuse panel-inner width */
.page-main .panel-inner {
  max-width: 780px;
  margin: 0 auto;
}

/* Title area */
.page-header {
  margin-bottom: 40px;
  /* text-align: center; */
}

.page-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}

/* Page content body */
.page-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #444444;
}

/* Make content a bit narrower like in your screenshot */
.page-main .page-content {
  max-width: 780px;
  margin: 0 auto;
}

/* Responsive spacing for page template */
@media (max-width: 768px) {
  .page-main .page-section {
    padding: 60px 15px 80px;
  }

  .page-main .page-content {
    max-width: 100%;
  }
}
