/*
Theme Name: Syrah Construction
Theme URI: https://example.com/syrah-construction
Author: Your Name
Author URI: https://example.com
Description: Minimal architecture portfolio theme for Syrah Construction Inc.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: syrah-construction
*/

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

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: #111111;
  background-color: #ffffff;
  line-height: 1.6;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

main {
  display: block;
}

/* Layout */
.sc-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.sc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e5e5;
}

.sc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.sc-logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sc-primary-menu {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sc-primary-menu a {
  opacity: 0.7;
}

.sc-primary-menu a:hover,
.sc-primary-menu a:focus-visible,
.sc-primary-menu .current-menu-item > a {
  opacity: 1;
}

.sc-cta {
  margin-left: 16px;
}

.sc-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #111111;
  background-color: #111111;
  color: #ffffff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.sc-cta a:hover,
.sc-cta a:focus-visible {
  background-color: #ffffff;
  color: #111111;
}

/* Mobile */
.sc-nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .sc-header-inner {
    padding-inline: 16px;
  }

  .sc-nav-toggle {
    display: inline-flex;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
  }

  .sc-nav {
    display: none;
  }

  .sc-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 16px 16px;
  }

  .sc-primary-menu {
    flex-direction: column;
    gap: 8px;
  }

  .sc-cta {
    margin-left: 0;
  }
}

/* Typography */
.sc-page {
  padding: 48px 0 80px;
}

.sc-page-header {
  margin-bottom: 32px;
}

.sc-page-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-page-intro {
  max-width: 640px;
  margin-top: 12px;
  color: #555555;
}

.sc-content {
  font-size: 1rem;
  color: #222222;
}

.sc-content p {
  margin: 0 0 1.1em;
}

.sc-content h2,
.sc-content h3,
.sc-content h4 {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2.2em;
  margin-bottom: 0.9em;
}

.sc-content ul,
.sc-content ol {
  padding-left: 1.2em;
}

/* About page */
.about-page .sc-content {
  max-width: 820px;
  margin: 0 auto;
}

.about-page .sc-content section + section {
  margin-top: 2.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid #eeeeee;
}

.about-page .about-logo-figure,
.about-page .about-founder-figure {
  margin-top: 1.6em;
  max-width: 260px;
}

.about-page .about-logo-figure img,
.about-page .about-founder-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.about-page .about-founder-block {
  border-left: 1px solid #e5e5e5;
  padding-left: 20px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .about-page .sc-content {
    max-width: 100%;
  }
}

/* Front page */
.sc-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 48px;
  border-bottom: 1px solid #f0f0f0;
}

.sc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.06) 32%,
    rgba(0, 0, 0, 0.14) 100%
  );
  pointer-events: none;
}

.sc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.sc-hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #777777;
  margin-bottom: 16px;
}

.sc-hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.sc-hero-subtitle {
  max-width: 520px;
  color: #555555;
}

.sc-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  font-size: 0.9rem;
  color: #555555;
}

.sc-hero-meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #999999;
  margin-bottom: 4px;
}

.sc-projects {
  padding: 40px 0 24px;
}

.sc-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.sc-section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.sc-section-subtitle {
  font-size: 0.9rem;
  color: #777777;
}

.sc-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.sc-services-grid {
  row-gap: 28px;
}

.sc-services-grid {
  row-gap: 28px;
}

.sc-project-card {
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 140px;
}

.sc-service-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.sc-service-logo img {
  width: 70%;
  height: auto;
  display: block;
}

.sc-project-card figure {
  margin: 0 0 12px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f7f7;
}

.sc-project-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-project-card figure {
  margin: 0 0 12px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f7f7;
}

.sc-project-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-project-name {
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sc-project-meta {
  font-size: 0.82rem;
  color: #777777;
  line-height: 1.55;
}

.sc-project-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #999999;
}

/* Blog */
.sc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.sc-blog-card {
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}

.sc-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.sc-blog-card-image {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.sc-blog-card-image figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f7f7f7;
}

.sc-blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 200ms ease-out;
}

.sc-blog-card:hover .sc-blog-card-image img {
  transform: scale(1.02);
}

.sc-blog-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.sc-blog-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
}

.sc-blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.sc-blog-card-title a:hover,
.sc-blog-card-title a:focus-visible {
  text-decoration: underline;
}

.sc-blog-card-meta {
  font-size: 0.75rem;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sc-blog-card-excerpt {
  font-size: 0.82rem;
  color: #555555;
  line-height: 1.55;
  flex: 1;
}

.sc-blog-card-link {
  margin-top: auto;
}

.sc-blog-card-link .sc-cta-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #111111;
  padding-bottom: 2px;
}

.sc-blog-card-link .sc-cta-link:hover,
.sc-blog-card-link .sc-cta-link:focus-visible {
  opacity: 0.7;
}

.sc-blog-post-meta {
  font-size: 0.75rem;
  color: #777777;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

.sc-blog-post-featured-image {
  margin: 0 0 20px;
  border-radius: 10px;
  overflow: hidden;
}

.sc-blog-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.sc-blog-post-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eeeeee;
  font-size: 0.85rem;
  color: #555555;
}

.sc-blog-post-categories,
.sc-blog-post-tags {
  margin-bottom: 12px;
}

.sc-blog-post-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 8px;
}

.sc-blog-post-footer a {
  color: #555555;
  text-decoration: none;
}

.sc-blog-post-footer a:hover,
.sc-blog-post-footer a:focus-visible {
  text-decoration: underline;
}

.sc-blog-post-navigation {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eeeeee;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sc-blog-post-nav-prev,
.sc-blog-post-nav-next {
  flex: 1;
  min-width: 200px;
}

.sc-blog-post-nav-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #999999;
  margin-bottom: 4px;
}

.sc-blog-post-nav-prev a,
.sc-blog-post-nav-next a {
  display: block;
  font-size: 0.9rem;
  color: #111111;
  text-decoration: none;
  font-weight: 500;
}

.sc-blog-post-nav-prev a:hover,
.sc-blog-post-nav-next a:hover,
.sc-blog-post-nav-prev a:focus-visible,
.sc-blog-post-nav-next a:focus-visible {
  text-decoration: underline;
}

.sc-blog-post-nav-next {
  text-align: right;
}

/* Gallery */
.sc-gallery-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.sc-gallery-category-card {
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  background: #ffffff;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}

.sc-gallery-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.sc-gallery-category-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.sc-gallery-category-cover {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f7f7f7;
  position: relative;
}

.sc-gallery-category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-gallery-category-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.sc-gallery-category-placeholder-text {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #999999;
  text-align: center;
  padding: 20px;
}

.sc-gallery-category-info {
  padding: 18px 20px;
}

.sc-gallery-category-name {
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
}

.sc-gallery-category-count {
  font-size: 0.75rem;
  color: #777777;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sc-gallery-item {
  margin-bottom: 0;
}

.gallery-page .gallery-wrap {
  padding: 0 32px 64px;
}

.gallery-page .gallery-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.gallery-page .wp-block-gallery,
.gallery-page .gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  list-style: none;
  width: 100% !important;
  max-width: none !important;
}

.gallery-page .wp-block-gallery .wp-block-image,
.gallery-page .gallery-grid figure,
.gallery-page .wp-block-gallery .blocks-gallery-item,
.gallery-page figure.wp-block-image,
.gallery-page .wp-block-gallery .wp-block-image figure {
  margin: 0;
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  flex: 1 1 auto !important;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #f7f7f7;
  transform: translateZ(0);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}

.gallery-page .wp-block-gallery img,
.gallery-page .gallery-grid img,
.gallery-page figure.wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-page .wp-block-gallery .wp-block-image:hover,
.gallery-page .gallery-grid figure:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-page .gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease-out, visibility 160ms ease-out;
  z-index: 1200;
  padding: 16px;
}

.gallery-page .gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-page .gallery-lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.985);
  transition: transform 160ms ease-out;
}

.gallery-page .gallery-lightbox.is-open .gallery-lightbox__content {
  transform: scale(1);
}

.gallery-page .gallery-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  background: #0f0f0f;
}

@media (max-width: 900px) {
  .sc-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-page .wp-block-gallery,
  .gallery-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sc-hero {
    padding-top: 64px;
    padding-bottom: 36px;
  }

  .sc-project-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sc-gallery-categories-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-page .wp-block-gallery,
  .gallery-page .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-page .gallery-wrap {
    padding-inline: 16px;
  }

  .sc-page {
    padding-inline: 16px;
  }
}

/* Pagination */
.pagination,
.navigation {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination .nav-links,
.navigation .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination .page-numbers,
.navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  color: #555555;
  min-width: 36px;
  transition: all 140ms ease-out;
}

.pagination .page-numbers:hover,
.navigation .page-numbers:hover,
.pagination .page-numbers:focus-visible,
.navigation .page-numbers:focus-visible {
  border-color: #111111;
  color: #111111;
  background: #f8f8f8;
}

.pagination .page-numbers.current,
.navigation .page-numbers.current {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.pagination .page-numbers.dots,
.navigation .page-numbers.dots {
  border: none;
  cursor: default;
}

.pagination .page-numbers.dots:hover,
.navigation .page-numbers.dots:hover {
  background: transparent;
}

/* Footer */
.sc-footer {
  border-top: 1px solid #e5e5e5;
  padding: 40px 0 44px;
  font-size: 0.88rem;
  color: #555555;
  margin-top: 32px;
}

.sc-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 32px;
}

.sc-footer-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  color: #555555;
  font-weight: 600;
}

.sc-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sc-footer-list li + li {
  margin-top: 4px;
}

.sc-footer-meta {
  margin-top: 16px;
  font-size: 0.78rem;
  color: #999999;
}

@media (max-width: 720px) {
  .sc-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


