﻿/* ============================================================
   ESIK MIMARLIK – SHARED STYLESHEET
   ============================================================ */

/* ── Google Fonts is loaded per-page via <link> ── */

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

:root {
  --gold:       #c8a96e;
  --gold-light: #e0c992;
  --gold-dark:  #a07840;
  --dark:       #0a0a0a;
  --dark2:      #111111;
  --dark3:      #181818;
  --dark4:      #222222;
  --white:      #ffffff;
  --white-90:   rgba(255,255,255,0.9);
  --white-70:   rgba(255,255,255,0.7);
  --white-40:   rgba(255,255,255,0.4);
  --white-15:   rgba(255,255,255,0.08);
  --nav-h:      72px;
  --ease:       cubic-bezier(0.77,0,0.18,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: "Montserrat", sans-serif;
  background: var(--dark);
  color: var(--white);
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 1000;
  padding: 0 48px 0 36px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#navbar.transparent {
  background: linear-gradient(to bottom, rgba(0,0,0,0.78) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}
#navbar.solid {
  background: var(--dark2);
  box-shadow: 0 1px 0 rgba(200,169,110,0.15);
}

/* LOGO */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 56px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-top  { font-size: 8.5px; font-weight: 500; letter-spacing: 0.3em; color: var(--white-70); text-transform: uppercase; }
.logo-letters { display: flex; align-items: center; line-height: 1; gap: 0; }
.logo-letters .big   { font-family: "Cormorant Garamond", serif; font-size: 40px; font-weight: 300; color: var(--white); }
.logo-letters .slash { font-size: 34px; font-weight: 100; color: var(--gold); margin: 0 3px; }
.logo-sub  { font-size: 7.5px; letter-spacing: 0.35em; color: var(--gold-light); text-transform: uppercase; margin-top: -3px; }

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 1;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--white-70);
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.has-sub { display: flex; align-items: center; gap: 4px; }
.nav-links a.has-sub .arr { font-size: 8px; color: var(--gold); }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.35s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE OVERLAY MENU */
#mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu a {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--white-70);
  text-transform: uppercase;
  transition: color 0.3s;
}
#mobile-menu a:hover { color: var(--gold); }
#mobile-menu .mob-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  height: 55vh;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.75) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
}
.page-hero-content .tag {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.page-hero-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}

/* ============================================================
   SECTION BASICS
   ============================================================ */
section { padding: 100px 60px; }

.section-tag {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 44px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}
.section-lead {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white-70);
  line-height: 1.85;
  max-width: 640px;
}
.gold-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px 0;
}

/* BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}
.btn:hover { color: var(--dark); }
.btn:hover::before { transform: scaleX(1); }
.btn-solid {
  background: var(--gold);
  color: var(--dark);
}
.btn-solid:hover { background: var(--gold-light); }
.btn-solid::before { display: none; }

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}
.card {
  background: var(--dark3);
  padding: 44px 36px;
  transition: background 0.35s, transform 0.35s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.card:hover { background: var(--dark4); transform: translateY(-4px); }
.card:hover::before { width: 100%; }
.card-icon { font-size: 32px; margin-bottom: 20px; }
.card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.card p {
  font-size: 12px;
  font-weight: 300;
  color: var(--white-70);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(200,169,110,0.18);
  padding: 72px 60px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .logo { margin: 0 0 20px 0; align-items: flex-start; }
.footer-brand p {
  font-size: 12px;
  font-weight: 300;
  color: var(--white-70);
  line-height: 1.85;
  letter-spacing: 0.04em;
  max-width: 300px;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--white-40);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  color: var(--white-70);
  font-size: 14px;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--white-70);
  letter-spacing: 0.06em;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul li a::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
  flex-shrink: 0;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-col ul li a:hover::before { opacity: 1; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-contact-item .ico {
  color: var(--gold);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact-item span {
  font-size: 12px;
  font-weight: 300;
  color: var(--white-70);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 11px;
  color: var(--white-40);
  letter-spacing: 0.08em;
}
.footer-bottom .gold-mark { color: var(--gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fadeUp { animation: fadeUp 0.7s var(--ease) forwards; }

/* Intersection Observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  section { padding: 80px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .logo-letters .big  { font-size: 32px; }
  .logo-letters .slash { font-size: 28px; }
  .logo-top { font-size: 7px; }
  .logo-sub { font-size: 6.5px; }

  .page-hero { height: 45vh; padding-bottom: 40px; }
  .page-hero-content { padding: 0 24px; }
  .page-hero-content h1 { font-size: 34px; }

  section { padding: 60px 24px; }
  .section-title { font-size: 30px; }

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

  footer { padding: 52px 24px 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .page-hero-content h1 { font-size: 26px; }
  .section-title { font-size: 24px; }
}

/* ============================================================
   DROPDOWN MENU
   ============================================================ */
.nav-item { position: relative; }

.nav-item > a { display: flex; align-items: center; gap: 5px; }
.nav-item > a .arr { font-size: 8px; color: var(--gold); transition: transform 0.3s; }
.nav-item:hover > a .arr { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(200,169,110,0.15);
  border-top: 2px solid var(--gold);
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 500;
}
.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { list-style: none; }
.dropdown li a {
  display: block;
  padding: 12px 22px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-70);
  transition: all 0.25s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  white-space: nowrap;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  color: var(--gold);
  background: rgba(200,169,110,0.06);
  padding-left: 28px;
}
.dropdown li a::after { display: none !important; }
