/* ============================================
   ARHAM DESIGN CONSULTANTS — Architecture Firm Website
   Custom Stylesheet
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Lemon Granite Morning Palette */
  --clr-primary: #2C4C5C;
  --clr-secondary: #6C8494;
  --clr-accent: #F3E308;
  --clr-accent-dark: #d4c607;
  --clr-light: #f5f5f5;
  --clr-white: #ffffff;
  --clr-muted: #959595;
  --clr-text: #3a3a3a;
  --clr-border: #a4a4a4;
  --clr-bg-alt: #f7f8f9;
  --clr-overlay: rgba(44, 76, 92, 0.65);

  --ff-heading: 'Archivo', sans-serif;
  --ff-body: 'Archivo', sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-base: 1.125rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-5xl: 4.5rem;

  --spacing-section: 80px;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --border-radius: 4px;
}

/* ---------- Global Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  color: var(--clr-text);
  background-color: var(--clr-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-heading);
  font-weight: var(--fw-bold);
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

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

ul {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

/* ---------- Utility Classes ---------- */
.section-padding {
  padding: var(--spacing-section) 0;
}

.section-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-muted);
  margin-bottom: 8px;
}

.section-heading {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 20px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition-base), gap var(--transition-base);
}

.view-all-link:hover {
  color: var(--clr-primary);
  gap: 10px;
}

.view-all-link i {
  font-size: 12px;
  transition: transform var(--transition-base);
}

.view-all-link:hover i {
  transform: translateX(3px);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
  padding: 8px 0;
  font-size: var(--fs-sm);
}

.top-contact {
  display: flex;
  gap: 25px;
}

.top-link {
  color: var(--clr-secondary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-base);
}

.top-link:hover {
  color: var(--clr-primary);
}

.top-social {
  display: flex;
  gap: 15px;
}

.top-social .top-link {
  font-size: 16px; /* slightly larger for icons */
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
}

.site-header.scrolled {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
  animation: headerSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes headerSlideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}


.main-nav .nav-list {
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-nav .nav-link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 4px;
}

.main-nav .nav-link:hover {
  color: var(--clr-primary);
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-accent);
  transition: width var(--transition-base);
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  width: 100%;
}

.main-nav .nav-link.active {
  color: var(--clr-primary);
  font-weight: var(--fw-semibold);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--clr-primary);
  transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 100vh;
}

/* ============================================
   ABOUT / FEATURES SECTION
   ============================================ */
.about-section {
  padding: var(--spacing-section) 0 60px;
  background-color: var(--clr-white);
}

.about-intro {
  margin-bottom: 60px;
}

.about-intro-text {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  line-height: 35px;
  color: var(--clr-secondary);
  max-width: 800px;
  margin-bottom: 0;
}

.features-carousel-wrapper {
  position: relative;
  padding-top: 40px;
  border-top: 1px solid var(--clr-border);
}

.features-swiper {
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  padding-top: 4px;
}

/* Arrow row — sits below the carousel, centered */
.features-arrows-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.features-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--clr-border);
  background: transparent;
  color: var(--clr-secondary);
  cursor: pointer;
  border-radius: 0;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
  font-size: 18px;
}

.features-arrow-btn:hover {
  background-color: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

.feature-card {
  padding: 28px 20px;
  border: 1.5px solid transparent;
  background-color: transparent;
  cursor: pointer;
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base),
              transform var(--transition-base);
}

.feature-card:hover {
  border: 1.5px solid var(--clr-primary);
  background-color: var(--clr-white);
  box-shadow: 0 8px 28px rgba(44, 76, 92, 0.12);
  transform: translateY(-4px);
  border-radius: 5px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 38px;
  color: var(--clr-primary);
  transition: color var(--transition-base);
}

.feature-card:hover .feature-icon i {
  color: var(--clr-secondary);
}

.feature-card h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: var(--fs-base);
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================
   PROJECTS PREVIEW SECTION
   ============================================ */
.projects-section {
  padding: 60px 0;
  background-color: var(--clr-white);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.project-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-item:hover img {
  transform: scale(1.08);
}

.project-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 76, 92, 0.88) 0%, rgba(44, 76, 92, 0.1) 55%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: 1;
}

.project-item:hover::after {
  opacity: 1;
}

/* Hover info overlay — name + type */
.project-hover-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-item:hover .project-hover-info {
  opacity: 1;
  transform: translateY(0);
}

.project-hover-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-hover-type {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-accent);
}

.project-hover-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--clr-white);
  margin: 0;
  line-height: 1.3;
}

/* Large featured project */
.project-item.project-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  height: 450px;
}

.project-item.project-small {
  height: 220px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: var(--spacing-section) 0;
  background-color: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

@media (min-width: 992px) {
  .sticky-services-col {
    position: sticky;
    top: 120px; /* Offset for header + padding */
    z-index: 10;
  }
}

.services-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 10px;
}

.services-list {
  padding-top: 20px;
}

.service-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--clr-border);
  transition: padding-left var(--transition-base), color var(--transition-base);
  cursor: pointer;
}

.service-item:first-child {
  border-top: 1px solid var(--clr-border);
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item:hover {
  padding-left: 12px;
  color: var(--clr-primary);
  border-bottom-color: var(--clr-accent);
}

.service-item h4 {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-item h4 .service-arrow {
  font-size: 14px;
  opacity: 0;
  transform: translateX(-5px);
  transition: all var(--transition-base);
}

.service-item:hover h4 .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-item p {
  font-size: var(--fs-base);
  color: var(--clr-muted);
  margin-top: 4px;
  max-width: 500px;
  line-height: 1.7;
  display: none;
}

.service-item.active p {
  display: block;
}

.service-description-block {
  font-size: var(--fs-base);
  color: #6f6f6f;
  line-height: 30px;
  max-width: 600px;
}

/* ============================================
   CTA BANNER SECTION
   ============================================ */
.cta-banner {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.cta-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 76, 92, 0.80) 0%, rgba(44, 76, 92, 0.55) 100%);
  z-index: -1;
}

.cta-banner-title {
  font-size: clamp(2rem, 5vw, var(--fs-4xl));
  font-weight: var(--fw-extrabold);
  color: var(--clr-white);
  text-transform: uppercase;
  line-height: 1.15;
  max-width: 700px;
  letter-spacing: -0.5px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: var(--spacing-section) 0;
  background-color: var(--clr-white);
}

.stats-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: var(--ff-heading);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.stat-label {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.5;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
  padding: 60px 0 var(--spacing-section);
  background-color: var(--clr-white);
  border-top: 1px solid var(--clr-border);
}

.news-header {
  margin-bottom: 40px;
}

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

.news-card {
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.news-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card-image img {
  transform: scale(1.06);
}

.news-card-date {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--clr-white);
  padding: 8px 12px;
  text-align: center;
  line-height: 1.2;
}

.news-card-date .date-day {
  display: block;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-primary);
}

.news-card-date .date-month {
  display: block;
  font-size: 10px;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  color: var(--clr-muted);
  letter-spacing: 1px;
}

.news-card-body {
  padding: 20px 4px;
}

.news-card-body h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  margin-bottom: 0;
  transition: color var(--transition-base);
}

.news-card:hover .news-card-body h4 {
  color: var(--clr-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 60px 0 40px;
  background-color: var(--clr-primary);
  border-top: none;
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand .logo-text {
  font-family: var(--ff-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--clr-white);
}

.footer-brand .logo-tagline {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
}

.footer-description {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-heading {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: var(--clr-white);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-base), padding-left var(--transition-base);
}

.footer-links a:hover {
  color: var(--clr-accent);
  padding-left: 4px;
}

.footer-contact li {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
}

.footer-contact li i {
  font-size: 16px;
  color: var(--clr-accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background-color: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-primary);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-bottom p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet */
@media (max-width: 991.98px) {
  :root {
    --spacing-section: 70px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .project-item.project-large {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 300px;
  }

  .project-item.project-small {
    height: 220px;
  }

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

  .news-card:nth-child(3) {
    display: none;
  }

  .stats-grid {
    gap: 30px 20px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  :root {
    --spacing-section: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(12px);
    padding: 80px 30px 40px;
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .main-nav .nav-link {
    font-size: var(--fs-lg);
  }

  .hero-section {
    min-height: 600px;
  }

  .hero-content {
    padding-bottom: 60px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .about-intro-text {
    font-size: var(--fs-base);
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .project-item.project-large {
    grid-column: 1 / -1;
    height: 250px;
  }

  .project-item.project-small {
    height: 170px;
  }

  .section-heading {
    font-size: var(--fs-2xl);
  }

  .services-title {
    font-size: var(--fs-2xl);
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .news-card:nth-child(3) {
    display: block;
  }

  .cta-banner {
    padding: 80px 0;
  }

  .cta-banner-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-number {
    font-size: var(--fs-3xl);
  }
}

/* Small mobile */
@media (max-width: 479.98px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-item.project-large {
    height: 240px;
  }

  .project-item.project-small {
    height: 200px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
