/* =========================
   Self-hosted Fonts
========================= */

/* Inter */
@font-face {
  font-family: "Inter";
  src: url("/wp-content/themes/alexglassco/fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/wp-content/themes/alexglassco/fonts/inter-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/wp-content/themes/alexglassco/fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/wp-content/themes/alexglassco/fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Outfit */
@font-face {
  font-family: "Outfit";
  src: url("/wp-content/themes/alexglassco/fonts/outfit-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/wp-content/themes/alexglassco/fonts/outfit-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/wp-content/themes/alexglassco/fonts/outfit-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* Design tokens */
:root {
  --primary: #1b8fd9; /* brand blue */
  --primary-600: #167cc0;
  --accent: #7dd3fc; /* light glassy cyan */
  --bg: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #6b7280; /* gray-500 */
  --border: #e5e7eb;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: clamp(16px, 0.35vw + 14px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
}
a:hover {
  color: var(--primary);
}
button {
  font: inherit;
  cursor: pointer;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Headings */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: Outfit, Inter, system-ui, sans-serif;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}
h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
}
h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
}
p {
  margin: 0.75rem 0 1rem;
  color: var(--text);
}
ul{
  list-style: none;
}
.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Layout utilities */
.container {
  width: min(92%, 1200px);
  margin-inline: auto;
}
.container-wide {
  width: min(94%, 1400px);
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-sm {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

/* Flex & Grid */
.flex {
  display: flex;
  gap: 1rem;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: 1.25rem;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Spacing helpers (t-shirt sizes) */
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mt-1 {
  margin-top: 0.5rem !important;
}
.mb-1 {
  margin-bottom: 0.5rem !important;
}
.mt-2 {
  margin-top: 1rem !important;
}
.mb-2 {
  margin-bottom: 1rem !important;
}
.mt-3 {
  margin-top: 1.5rem !important;
}
.mb-3 {
  margin-bottom: 1.5rem !important;
}
.mt-4 {
  margin-top: 2rem !important;
}
.mb-4 {
  margin-bottom: 2rem !important;
}
.pt-1 {
  padding-top: 0.5rem !important;
}
.pb-1 {
  padding-bottom: 0.5rem !important;
}
.pt-2 {
  padding-top: 1rem !important;
}
.pb-2 {
  padding-bottom: 1rem !important;
}
.pt-3 {
  padding-top: 1.5rem !important;
}
.pb-3 {
  padding-bottom: 1.5rem !important;
}
.pt-4 {
  padding-top: 2rem !important;
}
.pb-4 {
  padding-bottom: 2rem !important;
}

/* Buttons */
.btn {
  --btn-bg: var(--primary);
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--btn-color);
  background: var(--btn-bg);
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform 0.05s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
}
.btn:hover {
  filter: brightness(1.05);
  box-shadow: var(--shadow);
  color: var(--primary) !important;
  background: var(--btn-color);
}
.btn:active {
  transform: translateY(1px);
}
.btn-outline {
  --btn-bg: transparent !important;
  --btn-color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  --btn-color: #fff;
  border-color: #fff;
}
.btn-light {
  --btn-bg: #f3f4f6;
  --btn-color: #111827;
}

/* Cards & helpers */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.shadow {
  box-shadow: var(--shadow);
}
.round {
  border-radius: var(--radius);
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.muted {
  color: var(--muted);
}

/* Header shell (works with the nav you pasted) */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow);
}
.nav .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
}
.logo img {
  height: 40px;
}

/* Footer basics */
.footer {
  background: #0b1220;
  color: #e5e7eb;
  padding: 2.5rem 0;
}
.footer a {
  color: #e5e7eb;
  opacity: 0.9;
}
.footer a:hover {
  opacity: 1;
}

/* Forms */
.input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 143, 217, 0.15);
}

/* Hero utilities */
.hero {
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  background: radial-gradient(
      1200px 400px at 20% -10%,
      rgba(125, 211, 252, 0.25),
      transparent 60%
    ),
    linear-gradient(#fff, #f8fafc);
}
.hero .eyebrow {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.hero .sub {
  color: var(--muted);
  max-width: 62ch;
}

body.single-post .grid-2 {
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 767px){
body.single-post .grid-2 {
  grid-template-columns: auto;
}
}

/* Blog / Archive post cards */
.post-card {
  padding: 0;            /* let image touch card edges */
  overflow: hidden;      /* clip image corners to the card */
}

.post-card > a {
  display: block;
  height: 100%;
}

/* Force 16:9 image on archive/listing cards */
.post-card .post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px 16px 0 0; /* match card rounding on top */
  margin-bottom: 0.9rem;        /* "some bottom margin" */
}

/* Content spacing */
.post-card .post-content {
  padding: 0 1.25rem 1.25rem;
}

.post-card h3 {
  margin-top: 0;
}

/* =========================
   Single Post
========================= */

.single-post .page-hero {
  padding: clamp(6rem, 7vw, 8rem) 0 clamp(2rem, 3vw, 3rem);
  background: radial-gradient(
      1200px 400px at 20% -10%,
      rgba(125, 211, 252, 0.22),
      transparent 60%
    ),
    linear-gradient(#fff, #f8fafc);
  border-bottom: 1px solid var(--border);
}

.single-post .single-title {
  max-width: 28ch;
  margin-inline: auto;
}

/* Layout */
.single-post .single-layout {
  align-items: start;
}

/* Main article card */
.single-article {
  padding: 1.25rem;
}

.single-thumb {
  width: 100%;
  height: auto;               /* natural height */
  border-radius: 14px;
  margin-bottom: 1rem;
}

/* Content typography */
.single-content {
  max-width: 72ch;
  margin-inline: auto;
}

.single-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.single-content a:hover {
  color: var(--primary-600);
}

.single-content h2,
.single-content h3,
.single-content h4 {
  margin-top: 1.25em;
}

.single-content ul,
.single-content ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1rem;
  list-style: disc;
}
.single-content li {
  margin: 0.35rem 0;
}

/* Sidebar */
.single-sidebar {
  position: sticky;
  top: 96px; /* below fixed nav */
}

.single-sidebar h4 {
  margin-top: 0;
}

.more-articles {
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.more-article {
  list-style: none;
}

.more-article-link {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.05s ease, box-shadow 0.2s ease;
}

.more-article-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: inherit; /* keep clean */
}

.more-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover; /* square thumbs */
}

.more-title {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.page-hero{
padding:150px 0 60px;
}
