/*
Theme Name: APAR USA
Theme URI: https://example.com/
Author: APAR USA
Author URI: https://example.com/
Description: A clean, modern WordPress theme built from scratch for APAR USA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apar-usa
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, blog
*/

:root {
  --ink: #0b1220;
  --ink-2: #1b2433;
  --muted: #5c6a7d;
  --accent: #f7941d;
  --accent-2: #f7941d;
  --bg: #f7f4ef;
  --card: #ffffff;
  --border: #e6e1d8;
  --shadow: 0 12px 40px rgba(11, 18, 32, 0.08);
  --radius: 18px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff 0%, var(--bg) 45%, #f2ede5 100%);
  line-height: 1.6;
}

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

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

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

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

.skip-link:focus {
  clip: auto;
  height: auto;
  width: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 999;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-title {
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.site-description {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.15rem 0 0;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > ul,
.site-nav .menu {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-items: center;
}
.site-nav a {
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  border-color: var(--accent);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  margin: 0 0 1rem;
}

.hero p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.button.alt {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}


.site-content {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.card {
  background: var(--card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.post-list {
  display: grid;
  gap: 1.5rem;
}

.post-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.post-meta {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.entry-content p {
  margin: 0 0 1rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  gap: 1rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.widget-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
  }

  .site-brand {
    grid-area: brand;
  }

  .nav-toggle {
    grid-area: toggle;
  }

  .site-nav {
    grid-area: nav;
    display: none;
    justify-content: flex-start;
  }

  .site.nav-open .site-nav {
    display: block;
  }

  .site-nav > ul,
  .site-nav .menu {
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.75rem;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.5rem;
  }

  .site-content {
    padding-top: 1.5rem;
  }
}

/* Base elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 3vw, 3.25rem);
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

p {
  margin: 0 0 1rem;
}

small {
  font-size: 0.85rem;
  color: var(--muted);
}

address {
  font-style: normal;
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

li {
  margin: 0.35rem 0;
}

dl {
  margin: 0 0 1rem;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0 0 0.75rem 1rem;
  color: var(--muted);
}

blockquote {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

blockquote p {
  margin: 0 0 0.75rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  text-align: left;
}

th {
  background: #f4efe7;
}

form {
  margin: 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button,
input[type="submit"],
.search-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

button:hover,
input[type="submit"]:hover,
.search-submit:hover,
.button:hover {
  filter: brightness(0.92);
}
fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0 0 1rem;
}

legend {
  padding: 0 0.5rem;
  font-weight: 600;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

pre {
  background: #0b1220;
  color: #fff;
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
}

code,
kbd {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95em;
  background: #f1ede6;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

figure {
  margin: 0 0 1.5rem;
}

figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1rem;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 1.75rem;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child {
  margin-top: 0;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover,
.entry-content a:focus {
  color: var(--accent);
}

.alignleft {
  float: left;
  margin: 0.35rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1rem;
}

.entry-content .alignwide {
  width: 100%;
  max-width: calc(var(--max) + 200px);
}

.entry-content .alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content .alignfull img {
  border-radius: 0;
}

.wp-caption {
  max-width: 100%;
  margin: 0 0 1.5rem;
}

.wp-caption img {
  border-radius: var(--radius);
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.gallery-item {
  margin: 0;
}

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

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.wp-block-button__link,
.wp-block-file__button {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.post-thumb {
  display: block;
  margin-bottom: 1rem;
}

.post-thumb img {
  display: block;
  border-radius: var(--radius);
}

.page-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.page-links a,
.page-links span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.page-links .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.nav-links .page-numbers {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.nav-links .current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.post-navigation {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.post-navigation a {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.search-form label {
  flex: 1 1 220px;
}

.search-form .search-field {
  width: 100%;
}

.comments-area {
  margin-top: 2rem;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.comment-list .children {
  list-style: none;
  margin: 1rem 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.comment-body {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.comment-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-author .avatar {
  border-radius: 50%;
}

.comment-content p {
  margin: 0 0 0.75rem;
}

.comment-respond {
  margin-top: 2rem;
}

.comment-form {
  display: grid;
  gap: 1rem;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  border-color: var(--accent);
}

.has-text-align-center {
  text-align: center;
}

.has-text-align-right {
  text-align: right;
}

@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }
}

/* Primary nav dropdowns (multi-level) */
.site-nav .menu-item {
  position: relative;
}

.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  z-index: 100;
}

.site-nav .sub-menu .sub-menu {
  top: 0;
  left: calc(100% + 0.25rem);
}

.site-nav .sub-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border-bottom: none;
}

.site-nav .sub-menu a:hover,
.site-nav .sub-menu a:focus {
  background: rgba(247, 148, 29, 0.12);
}

.site-nav .menu-item:hover > .sub-menu,
.site-nav .menu-item:focus-within > .sub-menu,
.site-nav .menu-item.sub-open > .sub-menu {
  display: block;
}

.submenu-toggle {
  margin-left: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  line-height: 1;
}

.submenu-toggle::after {
  content: "v";
  display: inline-block;
  transform: translateY(-1px);
}

.site-nav .menu-item.sub-open > .submenu-toggle::after {
  content: "^";
}

@media (hover: hover) and (pointer: fine) {
  .submenu-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-nav .sub-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: auto;
    box-shadow: none;
    border: none;
    border-left: 1px solid var(--border);
    border-radius: 0;
    padding: 0.5rem 0 0.5rem 0.85rem;
    margin-top: 0.25rem;
  }

  .site-nav .menu-item:hover > .sub-menu,
  .site-nav .menu-item:focus-within > .sub-menu {
    display: none;
  }

  .site-nav .menu-item.sub-open > .sub-menu {
    display: block;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


