/* ===== CUSTOM FONTS ===== */
@font-face { font-family: 'Bodrum Sans'; src: url('../fonts/BodrumSans-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodrum Sans'; src: url('../fonts/BodrumSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodrum Sans'; src: url('../fonts/BodrumSans-RegularItalic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bodrum Sans'; src: url('../fonts/BodrumSans-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodrum Sans'; src: url('../fonts/BodrumSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodrum Sans'; src: url('../fonts/BodrumSans-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Aktiv Grotesk'; src: url('../fonts/AktivGrotesk-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aktiv Grotesk'; src: url('../fonts/AktivGrotesk-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aktiv Grotesk'; src: url('../fonts/AktivGrotesk-MediumItalic.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Aktiv Grotesk'; src: url('../fonts/AktivGrotesk-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Aktiv Grotesk'; src: url('../fonts/AktivGrotesk-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }

/* ===== CSS VARIABLES ===== */
:root {
  --font-sans: 'Aktiv Grotesk', sans-serif;
  --font-serif: 'Bodrum Sans', serif;
  --background: #F5F3EC;
  --foreground: #1C1C20;
  --border: #E8E4D9;
  --card: #FAF9F5;
  --muted: #E8E5DC;
  --muted-foreground: #6E6E76;
  --accent: #E2DFD5;
  --studio-accent: #7C4A2D;
  --studio-warm: #FAF9F5;
  --clay-ember: #7C4A2D;
  --deep-grove: #294039;
  --brick-reverie: #390518;
  --obsidian: #1C1C20;
  --studio-haze: #F5F3EC;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== UTILITIES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 2.5rem; }
}

.container-wide {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 1024px) {
  .container-wide { padding: 0 4rem; }
}

.font-sans { font-family: var(--font-sans); }
.font-serif { font-family: var(--font-serif); }

.img-overlay-mid {
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
}

.img-overlay-dark {
  background: linear-gradient(to bottom, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.5) 100%);
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(245, 243, 236, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.site-header.transparent { background: transparent; }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 1024px) {
  .nav-container { height: 80px; }
}

.site-header .logo img {
  height: 22px;
  width: auto;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .site-header .logo img { height: 28px; }
}

/* Desktop nav */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active {
  border-bottom: 1px solid var(--foreground);
  padding-bottom: 2px;
}

.site-header.on-hero .nav-links a { color: white; opacity: 0.8; }
.site-header.on-hero .nav-links a:hover,
.site-header.on-hero .nav-links a.active { opacity: 1; color: white; }

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(0,0,0,0.1);
}
.social-links a { color: var(--foreground); opacity: 0.5; transition: opacity 0.2s; }
.social-links a:hover { opacity: 1; }
.site-header.on-hero .social-links { border-left-color: rgba(255,255,255,0.2); }
.site-header.on-hero .social-links a { color: white; opacity: 0.7; }

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--foreground);
}
.site-header.on-hero .mobile-menu-btn { color: white; }
@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: flex-end;
}

.mobile-menu-panel {
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: var(--background);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 1.5rem;
}

.mobile-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.7;
}

.mobile-nav a:hover,
.mobile-nav .current-menu-item > a {
  opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
}

.hero-section .hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-section .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-section .hero-overlay { position: absolute; inset: 0; }

.hero-section .hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 3rem;
}
@media (min-width: 1024px) {
  .hero-section .hero-content { padding-bottom: 6rem; }
}

.hero-section .hero-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

.hero-section .hero-title {
  font-size: 2rem;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) { .hero-section .hero-title { font-size: 2.75rem; } }
@media (min-width: 1024px) { .hero-section .hero-title { font-size: 3.75rem; margin-bottom: 1.5rem; } }
@media (min-width: 1280px) { .hero-section .hero-title { font-size: 4.5rem; } }

.hero-section .hero-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 24rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .hero-section .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

.hero-section .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 11px;
  }
}

.btn-primary {
  background: white;
  color: var(--foreground);
  border: 1px solid white;
}
.btn-primary:hover { background: rgba(255,255,255,0.9); }

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-dark {
  background: var(--foreground);
  color: var(--background);
  border: 1px solid var(--foreground);
}
.btn-dark:hover { background: rgba(28,28,32,0.9); }

.btn-dark-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(28,28,32,0.3);
}
.btn-dark-outline:hover {
  background: var(--foreground);
  color: var(--background);
}

/* ===== SECTIONS ===== */
.section {
  padding: 3.5rem 0;
}
@media (min-width: 1024px) {
  .section { padding: 7rem 0; }
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  margin-bottom: 0.5rem;
}
@media (min-width: 1024px) {
  .section-label {
    font-size: 11px;
    margin-bottom: 0.75rem;
  }
}

.section-title {
  font-size: 1.5rem;
  color: var(--foreground);
  font-family: var(--font-serif);
}
@media (min-width: 640px) { .section-title { font-size: 1.875rem; } }
@media (min-width: 1024px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 1280px) { .section-title { font-size: 3rem; } }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) {
  .section-header { margin-bottom: 4rem; }
}

.section-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.section-link:hover { opacity: 1; }
@media (min-width: 640px) {
  .section-link { display: flex; }
}

/* ===== TAGLINE BANNER ===== */
.tagline-banner {
  background: var(--studio-warm);
  padding: 2rem 0;
  text-align: center;
}
@media (min-width: 1024px) {
  .tagline-banner { padding: 3.5rem 0; }
}

.tagline-banner p {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--foreground);
  line-height: 1.5;
}
@media (min-width: 640px) { .tagline-banner p { font-size: 1.5rem; } }
@media (min-width: 1024px) { .tagline-banner p { font-size: 1.875rem; } }
@media (min-width: 1280px) { .tagline-banner p { font-size: 2.25rem; } }

/* ===== PROJECT CARDS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.project-card { display: block; }

.project-card .card-image {
  overflow: hidden;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  aspect-ratio: 4/3;
}
@media (min-width: 1024px) {
  .project-card .card-image { margin-bottom: 1rem; }
}

.project-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .card-image img { transform: scale(1.05); }

.project-card .card-meta {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  margin-bottom: 0.25rem;
}
@media (min-width: 1024px) {
  .project-card .card-meta {
    font-size: 11px;
    margin-bottom: 0.375rem;
  }
}

.project-card .card-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--foreground);
  transition: color 0.2s;
}
@media (min-width: 1024px) { .project-card .card-title { font-size: 1.5rem; } }

.project-card:hover .card-title { color: rgba(28,28,32,0.8); }

.project-card .card-desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}
@media (min-width: 1024px) {
  .project-card .card-desc {
    font-size: 0.875rem;
    margin-top: 0.375rem;
  }
}

/* ===== ABOUT BANNER ===== */
.about-banner { background: var(--studio-warm); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.about-image {
  overflow: hidden;
  border-radius: 0.375rem;
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.service-card .service-image {
  overflow: hidden;
  border-radius: 0.375rem;
  aspect-ratio: 4/3;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) {
  .service-card .service-image { margin-bottom: 1.5rem; }
}

.service-card .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-image img { transform: scale(1.05); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
  text-align: center;
}
@media (min-width: 1024px) {
  .newsletter-section { padding: 5rem 0; }
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .newsletter-form { flex-direction: row; gap: 0.75rem; }
}

.newsletter-form input {
  flex: 1;
  background: rgba(245,243,236,0.1);
  border: 1px solid rgba(245,243,236,0.2);
  color: var(--background);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
  font-style: normal !important;
}

.newsletter-form input::placeholder { color: rgba(245,243,236,0.3); }
.newsletter-form input:focus { border-color: rgba(245,243,236,0.5); }

.newsletter-form button {
  background: var(--background);
  color: var(--foreground);
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: background 0.2s;
}

.newsletter-form button:hover { background: rgba(245,243,236,0.9); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--foreground);
  color: var(--background);
  font-family: var(--font-sans);
}

.site-footer * { font-style: normal !important; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 5rem 0;
  }
}

.footer-heading {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,243,236,0.4);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; }
.footer-links li + li { margin-top: 0.875rem; }

.footer-links a {
  font-size: 0.875rem;
  color: rgba(245,243,236,0.6);
  letter-spacing: 0.03em;
  transition: color 0.2s;
  font-family: var(--font-sans);
}
.footer-links a:hover { color: var(--background); }

.footer-bottom {
  border-top: 1px solid rgba(245,243,236,0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; padding: 2rem 0; }
}

.footer-bottom p, .footer-bottom a {
  font-size: 11px;
  color: rgba(245,243,236,0.3);
  letter-spacing: 0.03em;
  font-family: var(--font-sans);
}

.footer-bottom a:hover { color: rgba(245,243,236,0.6); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.7s ease-out forwards;
}

/* ===== PORTFOLIO PAGE FILTERS ===== */
.portfolio-filter-btn {
  background: transparent !important;
  cursor: pointer;
}

.portfolio-filter-btn.active {
  color: var(--foreground) !important;
  border-bottom-color: var(--foreground) !important;
}

/* ===== PORTFOLIO GRID DESKTOP EDITORIAL ===== */
@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 1rem !important;
  }
  .portfolio-item:nth-child(6n+1) { grid-column: span 7; }
  .portfolio-item:nth-child(6n+2) { grid-column: span 5; }
  .portfolio-item:nth-child(6n+3) { grid-column: span 12; }
  .portfolio-item:nth-child(6n+4) { grid-column: span 5; }
  .portfolio-item:nth-child(6n+5) { grid-column: span 7; }
  .portfolio-item:nth-child(6n+6) { grid-column: span 12; }
}

/* ===== PROJECT DETAIL TABS ===== */
.project-tab-btn {
  background: transparent !important;
  cursor: pointer;
  transition: color 0.2s;
}

.project-tab-btn.active {
  color: var(--foreground) !important;
}

.project-tab-btn.active .tab-label {
  border-bottom: 1px solid var(--foreground);
  padding-bottom: 2px;
}

/* ===== PAGINATION ===== */
.nav-links.pagination,
.navigation.pagination {
  display: flex !important;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-numbers {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--foreground);
  border-radius: 0.25rem;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--foreground);
  color: var(--background);
}

/* ===== HIDE EMPTY ELEMENTS ===== */
.empty { display: none; }
